StateBag.IDictionary.Contains(Object) 方法

定義

如需這個成員的說明,請參閱 Contains(Object)For a description of this member, see Contains(Object).

 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

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

傳回

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

實作

備註

這個成員是明確介面成員實作,This member is an explicit interface member implementation. 只有在 StateBag 執行個體轉換成 IDictionary 介面時,才能使用這個成員。It can be used only when the StateBag instance is cast to an IDictionary interface.

適用於

另請參閱