ReadOnlyDictionary<TKey,TValue>.KeyCollection.ICollection<TKey>.Contains Methode

Definition

Bestimmt, ob die Auflistung einen bestimmten Wert enthält.

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

Parameter

item
TKey

Das Objekt, das in der Auflistung gefunden werden soll.

Gibt zurück

true wenn item in der Auflistung gefunden wird; andernfalls false.

Implementiert

Hinweise

Dieses Element ist eine explizite Schnittstellenmitgliedsimplementierung. Sie kann nur verwendet werden, wenn die ReadOnlyDictionary<TKey,TValue>.KeyCollection Instanz in eine ICollection<T> Schnittstelle umgegossen wird.

Gilt für: