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

Definitie

Bepaalt of de verzameling een specifieke waarde bevat.

 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

Parameters

item
TKey

Het object dat in de verzameling moet worden gevonden.

Retouren

trueals item deze is gevonden in de verzameling; anders. false

Implementeringen

Opmerkingen

Dit lid is een expliciete implementatie van interfaceleden. Deze kan alleen worden gebruikt wanneer het ReadOnlyDictionary<TKey,TValue>.KeyCollection exemplaar naar een ICollection<T> interface wordt gecast.

Van toepassing op