PowerSNMP for .NET
TryGetValue Method (SafeDictionary<TKey,TValue>)




Key used for lookup.
Value to set. Null if the key-value pair does not exist in the Dictionary.
Gets the value associated with the specified key.
Syntax
Public Shadows Function TryGetValue( _
   ByVal key As TKey, _
   ByRef value As TValue _
) As Boolean
Dim instance As SafeDictionary(Of TKey,TValue)
Dim key As TKey
Dim value As TValue
Dim value As Boolean
 
value = instance.TryGetValue(key, value)
public new bool TryGetValue( 
   TKey key,
   out TValue value
)
public: new bool TryGetValue( 
   TKey* key,
   [PARAMFLAG::Out] TValue* value
) 
public:
new bool TryGetValue( 
   TKey^ key,
   [Out] TValue^ value
) 

Parameters

key
Key used for lookup.
value
Value to set. Null if the key-value pair does not exist in the Dictionary.

Return Value

Returns true if the key value pair exists in the Dictionary, false otherwise.
Remarks
Locks on SyncRoot to provide automatic thread safety.
See Also

Reference

SafeDictionary<TKey,TValue> Class
SafeDictionary<TKey,TValue> Members


PowerSNMP for .NET Documentation Version 8.0
© 2024 Dart Communications. All Rights Reserved.
Send comments on this topic