EventDescriptorCollection.IList.Insert(Int32, Object) 方法

定義

將項目插入集合中指定的索引處。

 virtual void System.Collections.IList.Insert(int index, System::Object ^ value) = System::Collections::IList::Insert;
void IList.Insert (int index, object value);
void IList.Insert (int index, object? value);
abstract member System.Collections.IList.Insert : int * obj -> unit
override this.System.Collections.IList.Insert : int * obj -> unit
Sub Insert (index As Integer, value As Object) Implements IList.Insert

參數

index
Int32

應在 value 插入以零為起始的索引。

value
Object

要插入至集合的 Object

實作

例外狀況

集合是唯讀的。

備註

注意

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

適用於