EventDescriptorCollection.Contains(EventDescriptor) 方法

定義

傳回值,表示集合是否含有指定的 EventDescriptor

public:
 bool Contains(System::ComponentModel::EventDescriptor ^ value);
public bool Contains (System.ComponentModel.EventDescriptor value);
public bool Contains (System.ComponentModel.EventDescriptor? value);
member this.Contains : System.ComponentModel.EventDescriptor -> bool
Public Function Contains (value As EventDescriptor) As Boolean

參數

value
EventDescriptor

要在集合中尋找的 EventDescriptor

傳回

如果集合含有指定的 value 參數,則為 true,否則為 false

備註

注意

HostProtectionAttribute套用至這個類別的屬性具有下列Resources屬性值:SynchronizationHostProtectionAttribute 不會影響桌面應用程式 (這些應用程式的啟動方式一般都是按兩下圖示、輸入命令或在瀏覽器輸入 URL)。 如需詳細資訊,請參閱 類別HostProtectionAttributeSQL Server 程式設計和主機保護屬性

適用於