EventDescriptorCollection.Add(EventDescriptor) 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
在收藏的最後加上 。EventDescriptor
public:
int Add(System::ComponentModel::EventDescriptor ^ value);
public int Add(System.ComponentModel.EventDescriptor? value);
public int Add(System.ComponentModel.EventDescriptor value);
member this.Add : System.ComponentModel.EventDescriptor -> int
Public Function Add (value As EventDescriptor) As Integer
參數
- value
- EventDescriptor
還有 EventDescriptor 一個要加入收藏的。
傳回
在收藏中的位置 EventDescriptor 。
例外狀況
本合集為唯讀。
備註
備註
HostProtectionAttribute套用於此類別的屬性具有以下Resources屬性值: Synchronization。 這 HostProtectionAttribute 不會影響桌面應用程式(通常透過雙擊圖示、輸入指令或在瀏覽器輸入網址來啟動)。 欲了解更多資訊,請參閱 HostProtectionAttribute 類別或 SQL Server 程式設計與主機保護屬性。