Gets the value associated with the specified key.
public virtual bool TryGetValue(
,
out
)
'Declaration
Public Overridable Function TryGetValue( _
ByVal As , _
ByRef As _
) As Boolean
'Usage
Dim instance As ThreadSafeDictionary(Of TKey,TValue)
Dim key As
Dim value As
Dim value As Boolean
value = instance.TryGetValue(key, value)
public:
virtual bool TryGetValue(
,
[Out]
)
Parameters
- key
- The key whose 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 parameter. This parameter is passed uninitialized.
Return Value
true if the object that implements
IDictionary contains an element with the specified key; otherwise, false.