Namespace:
System.Collections.Concurrent
Assembly:
System.Threading (in System.Threading.dll)
Syntax
Visual Basic (Declaration) |
---|
Public Function TryGetValue ( _
key As TKey, _
<OutAttribute> ByRef value As TValue _
) As Boolean |
C# |
---|
public bool TryGetValue(
TKey key,
out TValue value
) |
Return Value
true if the key was found in the
ConcurrentDictionary<(Of <(TKey, TValue>)>);
otherwise, false.
Implements
IDictionary<(Of <(TKey, TValue>)>)..::.TryGetValue(TKey, TValue%)Exceptions
Exception | Condition |
---|
System..::.ArgumentNullException | key is a null reference
(Nothing in Visual Basic). |
See Also