Wintellect.PowerCollections Namespace
Algorithms Class
GhostDoc Pro Sample Help File

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

Determines if this dictionary contains a key equal to key. If so, the value associated with that key is returned through the value parameter. This method must be overridden by the derived class.

Namespace:  Wintellect.PowerCollections
Assembly:  PowerCollections (in PowerCollections.dll)

Syntax


public bool TryGetValue(
	TKey key,
	out TValue value
)
Public Function TryGetValue ( _
	key As TKey, _
	<OutAttribute> ByRef value As TValue _
) As Boolean
public:
bool^ TryGetValue(
	TKey key, 
	[OutAttribute] TValue% value
)

Parameters

key
Type: TKey
The key to search for.
value
Type: TValue%
Returns the value assocciated with key, if true was returned.

Return Value

True if the dictionary contains key. False if the dictionary does not contain key.