OrderedDictionary<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 对象中查找的键。

返回

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

实现

适用于