MaterialRefs.TryGetValue Method

MaterialRefsTryGetValue Method

Gets the value associated with the specified key.

Namespace:  Rhino.DocObjects
Assembly:  RhinoCommon (in RhinoCommon.dll)
Syntax
public bool TryGetValue(
	Guid key,
	out MaterialRef value
)
Public Function TryGetValue ( 
	key As Guid,
	<OutAttribute> ByRef value As MaterialRef
) As Boolean

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)
Version Information

Rhino for Mac

Supported in: 5.4

Rhino for Windows

Supported in: 6.14
See Also