Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Determines whether the ReadOnlyDictionary contains an element with the specified key.
Namespace: Microsoft.Rtc.Collaboration.AudioVideo
Assembly: Microsoft.Rtc.Collaboration (in Microsoft.Rtc.Collaboration.dll)
Syntax
'Declaration
Public Function ContainsKey ( _
key As K _
) As Boolean
'Usage
Dim instance As ReadOnlyDictionary
Dim key As K
Dim returnValue As Boolean
returnValue = instance.ContainsKey(key)
public bool ContainsKey(
K key
)
Parameters
- key
Type: K
The key to locate in the ReadOnlyDictionary.
Return Value
Type: System.Boolean
true if the ReadOnlyDictionary contains an element with the key; otherwise, false.
Implements
IDictionary<TKey, TValue>.ContainsKey(TKey)
Exceptions
| Exception | Condition |
|---|---|
| ArgumentNullException | Thrown when key is null. |
See Also
Reference
ReadOnlyDictionary<K, V> Class