IImmutableDictionary<TKey,TValue>.Contains(KeyValuePair<TKey,TValue>) 方法
定义
确定不可变字典是否包含指定的键/值对。Determines whether the immutable dictionary contains the specified key/value pair.
public:
bool Contains(System::Collections::Generic::KeyValuePair<TKey, TValue> pair);
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
参数
要查找的键/值对。The key/value pair to locate.
返回
如果在字典中找到指定的键/值对,则为 true;否则为 false。true if the specified key/value pair is found in the dictionary; otherwise, false.