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

コレクション内で検索するオブジェクト。

戻り値

Boolean

item がコレクションに存在する場合は、true。それ以外の場合は、false

実装

注釈

このメンバーは、明示的なインターフェイス メンバーの実装です。 これは、ReadOnlyDictionary<TKey,TValue>.KeyCollection のインスタンスが ICollection<T> インターフェイスにキャストされる場合のみ、使用できます。

適用対象