Dictionary<TKey,TValue>.ICollection<KeyValuePair<TKey,TValue>>.Contains メソッド

定義

ICollection<T> に特定のキーと値が格納されているかどうかを判断します。

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

パラメーター

keyValuePair
KeyValuePair<TKey,TValue>

KeyValuePair<TKey,TValue> 内で検索される ICollection<T> 構造体。

戻り値

truekeyValuePair に存在する場合は ICollection<T>。それ以外の場合は false

実装

適用対象