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

Definition

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

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

Parametrar

item
TValue

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>.ValueCollection skickas till ett ICollection<T> gränssnitt.

Gäller för