ImmutableSortedDictionary<TKey,TValue>.Builder.IDictionary.Contains(Object) ImmutableSortedDictionary<TKey,TValue>.Builder.IDictionary.Contains(Object) ImmutableSortedDictionary<TKey,TValue>.Builder.IDictionary.Contains(Object) Method

定义

确定字典对象是否包含具有指定键的元素。Determines whether the dictionary object contains an element with the specified key.

 virtual bool System.Collections.IDictionary.Contains(System::Object ^ key) = System::Collections::IDictionary::Contains;
bool IDictionary.Contains (object key);
Function Contains (key As Object) As Boolean Implements IDictionary.Contains

参数

key
Object Object Object

要定位的键。The key to locate.

返回

如果字典包含具有该键的元素,则为 true;否则为 falsetrue if the dictionary contains an element with the key; otherwise, false.

实现

注解

此成员是显式接口成员的实现。This member is an explicit interface member implementation. 它只能在 ImmutableSortedDictionary<TKey,TValue>.Builder 实例被强制转换为 IDictionary 接口时使用。It can be used only when the ImmutableSortedDictionary<TKey,TValue>.Builder instance is cast to an IDictionary interface.

适用于