ReadOnlyDictionary<TKey,TValue>.KeyCollection.Contains(TKey) Metod
Definition
Viktigt
En del information gäller för förhandsversionen av en produkt och kan komma att ändras avsevärt innan produkten blir allmänt tillgänglig. Microsoft lämnar inga garantier, uttryckliga eller underförstådda, avseende informationen som visas här.
Avgör om innehåller ICollection<T> ett specifikt värde.
public:
virtual bool Contains(TKey item);
public bool Contains(TKey item);
abstract member Contains : 'Key -> bool
override this.Contains : 'Key -> bool
Public Function Contains (item As TKey) As Boolean
Parametrar
- item
- TKey
Objektet som ska hittas ICollection<T>i .
Returer
trueom item hittas i ICollection<T>; annars . false