ReadOnlyDictionary<K,V>.Contains(KeyValuePair<K,V>) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Determines whether the ReadOnlyDictionary contains an item.
public:
virtual bool Contains(System::Collections::Generic::KeyValuePair<K, V> item);
public bool Contains (System.Collections.Generic.KeyValuePair<K,V> item);
abstract member Contains : System.Collections.Generic.KeyValuePair<'K, 'V> -> bool
override this.Contains : System.Collections.Generic.KeyValuePair<'K, 'V> -> bool
Public Function Contains (item As KeyValuePair(Of K, V)) As Boolean
Parameters
- item
- KeyValuePair<K,V>
The item to locate in the ReadOnlyDictionary.
Returns
true if the ReadOnlyDictionary contains the item; otherwise, false.
Implements
Exceptions
item is null.