MultiValueDictionary<(Of <(<'TKey, TValue>)>)>..::..TryGetValue Method

Gets the value that is associated with the specified key.

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

Syntax


public bool TryGetValue(
	TKey key,
	out ReadOnlyCollection<TValue> value
)
Public Function TryGetValue ( _
	key As TKey, _
	<OutAttribute> ByRef value As ReadOnlyCollection(Of TValue) _
) As Boolean

Parameters

key
Type: TKey
The key to locate.
value
Type: ReadOnlyCollection<(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 the [IReadOnlyDictionary{TKey, TValue}] interface contains an element that has the specified key; otherwise, false.