ImmutableSortedDictionary<TKey,TValue>.Builder.Contains(KeyValuePair<TKey,TValue>) 方法

定义

确定不可变排序字典是否包含特定值。Determines whether the immutable sorted dictionary contains a specific value.

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

参数

item
KeyValuePair<TKey,TValue>

要在字典中查找的对象。The object to locate in the dictionary.

返回

如果在字典中找到 item,则为 true;否则为 falsetrue if item is found in the dictionary; otherwise, false.

实现

适用于