ImageGear .NET - Updated December 24, 2018
TryGetValue Method




ImageGear24.Windows.Controls Assembly > ImageGear.Core Namespace > ImGearReadOnlyDictionary<TKey,TValue> Class : TryGetValue Method
The key of the value to get.
When this 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. This parameter is passed uninitialized.
Gets the value associated with the specified key.
Syntax
'Declaration
 
Public Function TryGetValue( _
   ByVal key As TKey, _
   ByRef value As TValue _
) As Boolean
 
'Usage
 
Dim instance As ImGearReadOnlyDictionary(Of TKey,TValue)
Dim key As TKey
Dim value As TValue
Dim value As Boolean
 
value = instance.TryGetValue(key, value)

Parameters

key
The key of the value to get.
value
When this 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. This parameter is passed uninitialized.

Return Value

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

Reference

ImGearReadOnlyDictionary<TKey,TValue> Class
ImGearReadOnlyDictionary<TKey,TValue> Members