ConcurrentDictionary<TKey,TValue>.IDictionary.Contains(Object) Methode

Definition

Ruft einen Wert ab, der angibt, ob das IDictionary<TKey,TValue> ein Element mit dem angegebenen Schlüssel enthält.

 virtual bool System.Collections.IDictionary.Contains(System::Object ^ key) = System::Collections::IDictionary::Contains;
bool IDictionary.Contains (object key);
abstract member System.Collections.IDictionary.Contains : obj -> bool
override this.System.Collections.IDictionary.Contains : obj -> bool
Function Contains (key As Object) As Boolean Implements IDictionary.Contains

Parameter

key
Object

Der im IDictionary<TKey,TValue> zu suchende Schlüssel.

Gibt zurück

Boolean

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

Implementiert

Ausnahmen

key ist null.

Gilt für

Siehe auch