Gets the value associated with the specified key.

Namespace: Mindscape.SilverlightElements
Assembly: Mindscape.SilverlightElements (in Mindscape.SilverlightElements.dll) Version: 2.0.0.0 (2.0.0.0)

Syntax

C#
public bool TryGetValue(
	TKey key,
	out TValue value
)
Visual Basic
Public Function TryGetValue ( _
	key As TKey, _
	<OutAttribute> ByRef value As TValue _
) As Boolean
Visual C++
public:
virtual bool TryGetValue(
	TKey key, 
	[OutAttribute] TValue% value
) sealed

Parameters

key
Type: TKey
The key whose value to get.
value
Type: TValue%
When the method returns, contains the value associated with the specified key, if the key is found; otherwise, the default value for the type of the value parameter.

Return Value

true if the dictionary contains an element with the specified key; otherwise false.

Implements

IDictionary<(Of <(<'TKey, TValue>)>)>..::..TryGetValue(TKey, TValue%)

See Also