ReadOnlyDictionary<TKey,TValue>.KeyCollection.ICollection<TKey>.Contains 方法

定義

判斷此集合是否包含特定的值。

 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

參數

item
TKey

要在集合中找出的物件。

傳回

item 存在於此集合則為 true;否則為 false

實作

備註

這個成員是明確介面成員實作, 只有在 ReadOnlyDictionary<TKey,TValue>.KeyCollection 執行個體轉換成 ICollection<T> 介面時,才能使用這個成員。

適用於