PropertyDescriptorCollection.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

实现

适用于