EventDescriptorCollection.IList.Add(Object) 方法

定義

將項目新增至集合。

 virtual int System.Collections.IList.Add(System::Object ^ value) = System::Collections::IList::Add;
int IList.Add (object value);
int IList.Add (object? value);
abstract member System.Collections.IList.Add : obj -> int
override this.System.Collections.IList.Add : obj -> int
Function Add (value As Object) As Integer Implements IList.Add

參數

value
Object

要加入至集合的 Object

傳回

Int32

插入新項目的位置。

實作

例外狀況

集合是唯讀的。

備註

注意

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

適用於