ConcurrentDictionary<TKey,TValue>.ICollection<KeyValuePair<TKey,TValue>>.Contains Methode

Definition

Ruft ab, ob das ICollection<T> ein Element mit dem angegebenen Schlüssel enthält.

 virtual bool System.Collections.Generic.ICollection<System.Collections.Generic.KeyValuePair<TKey,TValue>>.Contains(System::Collections::Generic::KeyValuePair<TKey, TValue> keyValuePair) = System::Collections::Generic::ICollection<System::Collections::Generic::KeyValuePair<TKey, TValue>>::Contains;
bool ICollection<KeyValuePair<TKey,TValue>>.Contains (System.Collections.Generic.KeyValuePair<TKey,TValue> keyValuePair);
abstract member System.Collections.Generic.ICollection<System.Collections.Generic.KeyValuePair<TKey,TValue>>.Contains : System.Collections.Generic.KeyValuePair<'Key, 'Value> -> bool
override this.System.Collections.Generic.ICollection<System.Collections.Generic.KeyValuePair<TKey,TValue>>.Contains : System.Collections.Generic.KeyValuePair<'Key, 'Value> -> bool
Function Contains (keyValuePair As KeyValuePair(Of TKey, TValue)) As Boolean Implements ICollection(Of KeyValuePair(Of TKey, TValue)).Contains

Parameter

keyValuePair
KeyValuePair<TKey,TValue>

Der im ICollection<T> zu suchende Schlüssel.

Gibt zurück

true, wenn das ICollection<T> ein Element mit dem angegebenen Schlüssel enthält, andernfalls false.

Implementiert

Gilt für:

Weitere Informationen