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

Definition

Avgör om samlingen innehåller ett specifikt värde.

 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

Parametrar

item
TKey

Objektet som ska hittas i samlingen.

Returer

trueom item hittas i samlingen, annars . false

Implementeringar

Kommentarer

Den här medlemmen är en explicit implementering av gränssnittsmedlemmar. Den kan endast användas när instansen ReadOnlyDictionary<TKey,TValue>.KeyCollection skickas till ett ICollection<T> gränssnitt.

Gäller för