Click or drag to resize

MaterialRefsTryGetValue Method

Gets the value associated with the specified key.

Namespace:  Rhino.DocObjects
Assembly:  RhinoCommon (in RhinoCommon.dll)
Since: 5.10
Syntax
public bool TryGetValue(
	Guid key,
	out MaterialRef value
)

Parameters

key
Type: SystemGuid
The plug-in Id whose MaterialRef to get.
value
Type: Rhino.DocObjectsMaterialRef
When this method returns, the MaterialRef associated with the specified key, if the key is found; otherwise, null. This parameter is passed uninitialized.

Return Value

Type: Boolean
true if this dictionary contains a MaterialRef with the specified key; otherwise, false.

Implements

IDictionaryTKey, TValueTryGetValue(TKey, TValue)
See Also