ArchivableDictionary.TryGetValue Method

ArchivableDictionaryTryGetValue Method

Gets the value associated with the specified key.

Namespace:  Rhino.Collections
Assembly:  RhinoCommon (in RhinoCommon.dll)
Syntax
public bool TryGetValue(
	string key,
	out Object value
)
Public Function TryGetValue ( 
	key As String,
	<OutAttribute> ByRef value As Object
) As Boolean

Parameters

key
Type: SystemString
The key of the value to get.
value
Type: SystemObject
When this method returns and if the key is found, contains the value associated with the specified key; otherwise, null. This parameter is passed uninitialized.

Return Value

Type: Boolean
true if the dictionary contains an element with the specified key; otherwise, false.

Implements

IDictionaryTKey, TValueTryGetValue(TKey, TValue)
Exceptions
ExceptionCondition
ArgumentNullExceptionKey is null.
Version Information

Rhino for Mac

Supported in: 5.4

Rhino for Windows

Supported in: 6.8
See Also