ReadOnlyDictionary<K, V>.Contains Method
Determines whether the ReadOnlyDictionary contains an item.
Namespace: Microsoft.Rtc.Collaboration.AudioVideo
Assembly: Microsoft.Rtc.Collaboration (in Microsoft.Rtc.Collaboration.dll)
Syntax
'Declaration
Public Function Contains ( _
item As KeyValuePair(Of K, V) _
) As Boolean
'Usage
Dim instance As ReadOnlyDictionary
Dim item As KeyValuePair(Of K, V)
Dim returnValue As Boolean
returnValue = instance.Contains(item)
public bool Contains(
KeyValuePair<K, V> item
)
Parameters
- item
Type: System.Collections.Generic.KeyValuePair<K, V>
The item to locate in the ReadOnlyDictionary.
Return Value
Type: System.Boolean
true if the ReadOnlyDictionary contains the item; otherwise, false.
Implements
Exceptions
Exception | Condition |
---|---|
ArgumentNullException | item is null. |
See Also
Reference
ReadOnlyDictionary<K, V> Class