Documents for PDF, .NET Edition Documentation
TryGetValue Method (ObservableSortedDictionary<TKey,TValue>)

GrapeCity.Documents.Common Assembly > GrapeCity.Documents.Common Namespace > ObservableSortedDictionary<TKey,TValue> Class : TryGetValue Method
The key of the value to get.
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.
Gets the value associated with the specified key.
Syntax
'Declaration
 
Public Function TryGetValue( _
   ByVal key As TKey, _
   ByRef value As TValue _
) As System.Boolean
public System.bool TryGetValue( 
   TKey key,
   out TValue value
)

Parameters

key
The key of the value to get.
value
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.

Return Value

true if the ObservableSortedDictionary<TKey,TValue> contains an element with the specified key; otherwise, false.
See Also

Reference

ObservableSortedDictionary<TKey,TValue> Class
ObservableSortedDictionary<TKey,TValue> Members