VistaDB 5

Key in collection to find
The output of the value
TryGetValue Method (IVistaDBKeyedCollection<TKey,TValue>)
Try to get the value from the collection, if it does not exist returns false
Function TryGetValue( _
   ByVal key As TKey, _
   ByRef value As TValue _
) As System.Boolean
Dim instance As IVistaDBKeyedCollection(Of TKey,TValue)
Dim key As TKey
Dim value As TValue
Dim value As System.Boolean
value = instance.TryGetValue(key, value)
System.bool TryGetValue( 
   TKey key,
   out TValue value
function TryGetValue( 
    key: TKey;
   Out  value: TValue
): System.Boolean; 
function TryGetValue( 
   key : TKey,
   value : TValue
) : System.boolean;
System.bool TryGetValue( 
   TKey* key,
   [PARAMFLAG::Out] TValue* value
System.bool TryGetValue( 
   TKey^ key,
   [Out] TValue^ value


Key in collection to find
The output of the value

Return Value

True is success

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also