PropertyDescriptorCollection.IDictionary.Contains(Object) PropertyDescriptorCollection.IDictionary.Contains(Object) PropertyDescriptorCollection.IDictionary.Contains(Object) Method

定義

判斷 IDictionary 是否包含具有指定之索引鍵的項目。Determines whether the IDictionary 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

要在 IDictionary 中尋找的索引鍵。The key to locate in the IDictionary.

傳回

如果 true 包含具有該索引鍵的項目,則為 IDictionary,否則為 falsetrue if the IDictionary contains an element with the key; otherwise, false.

實作

適用於