Collection<T>.IList.Insert(Int32, Object) メソッド

定義

指定したインデックス位置にある IList に項目を挿入します。

 virtual void System.Collections.IList.Insert(int index, System::Object ^ value) = System::Collections::IList::Insert;
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を挿入する位置を示す 0 から始まるインデックス。

value
Object

Objectに挿入するIList

実装

例外

index は、 IList内の有効なインデックスではありません。

value は、 IListに割り当てられない型です。

注釈

index IList内の項目の数と等しい場合は、valueが末尾に追加されます。

このメソッドは O(n) 操作であり、 nCount

適用対象