語言

ImageList.ImageCollection.IList.Insert(Int32, Object) 方法

定義

實施該 Insert(Int32, Object) 方法。 在所有情況下都投擲 a NotSupportedException 。

 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

要插入收藏的物件。

實作

例外狀況

無論哪種情況。

備註

要把項目加入 ImageList.ImageCollection,請使用以下 Add 方法。

適用於