FrozenDictionary<TKey,TValue>.IDictionary.Contains(Object) 方法

定义

确定 IDictionary 对象是否包含具有指定键的元素。

 virtual bool System.Collections.IDictionary.Contains(System::Object ^ key) = System::Collections::IDictionary::Contains;
bool IDictionary.Contains (object key);
abstract member System.Collections.IDictionary.Contains : obj -> bool
override this.System.Collections.IDictionary.Contains : obj -> bool
Function Contains (key As Object) As Boolean Implements IDictionary.Contains

参数

key
Object

要在 IDictionary 对象中查找的键。

返回

如果 true 包含具有键的元素,则为 IDictionary;否则为 false

实现

适用于