ReadOnlyDictionary<K, V>.TryGetValue Method
Gets the element with the specified key.
Namespace: Microsoft.Rtc.Collaboration.AudioVideo
Assembly: Microsoft.Rtc.Collaboration (in Microsoft.Rtc.Collaboration.dll)
Syntax
'Declaration
Public Function TryGetValue ( _
key As K, _
<OutAttribute> ByRef value As V _
) As Boolean
'Usage
Dim instance As ReadOnlyDictionary
Dim key As K
Dim value As V
Dim returnValue As Boolean
returnValue = instance.TryGetValue(key, _
value)
public bool TryGetValue(
K key,
out V value
)
Parameters
- key
Type: K
The key of the element to get.
- value
Type: V
The element with the specified key.
Return Value
Type: System.Boolean
True if it retrieves a value otherwise, false.
Implements
IDictionary<TKey, TValue>.TryGetValue(TKey, TValue)
See Also
Reference
ReadOnlyDictionary<K, V> Class