Dictionary<(Of <(<'TKey1, TKey2, TValue>)>)>..::..TryGetValue Method (TKey1, TKey2, Nullable<(Of <(<'TValue>)>)>%)

Gets the value associated with the specified key.

Namespace:  Tortuga.Anchor.Collections
Assembly:  Tortuga.Anchor (in Tortuga.Anchor.dll)

Syntax


public bool TryGetValue(
	TKey1 key1,
	TKey2 key2,
	out Nullable<TValue> value
)
Public Function TryGetValue ( _
	key1 As TKey1, _
	key2 As TKey2, _
	<OutAttribute> ByRef value As Nullable(Of TValue) _
) As Boolean

Parameters

key1
Type: TKey1
The first key.
key2
Type: TKey2
The second key.
value
Type: Nullable<(Of <(<'TValue>)>)>%
When this method returns, the value associated with the specified key, if the key is found; otherwise, the default value for the type of the value parameter. This parameter is passed uninitialized.

Return Value

true if the object that implements [IDictionary{TKey,TValue}] contains an element with the specified key; otherwise, false.