IImmutableDictionary<TKey,TValue>.Contains メソッド

定義

変更できないディクショナリに、指定されたキーと値のペアが含まれているかどうかを判定します。

public:
 bool Contains(System::Collections::Generic::KeyValuePair<TKey, TValue> pair);
public bool Contains (System.Collections.Generic.KeyValuePair<TKey,TValue> pair);
abstract member Contains : System.Collections.Generic.KeyValuePair<'Key, 'Value> -> bool
Public Function Contains (pair As KeyValuePair(Of TKey, TValue)) As Boolean

パラメーター

pair
KeyValuePair<TKey,TValue>

検索するキーと値のペア。

戻り値

指定したキーと値のペアがディクショナリ内に見つかる場合は true。それ以外の場合は false

適用対象