Array.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 を挿入する位置のインデックス番号。

value
Object

挿入するオブジェクト。

実装

例外

indexIList の有効なインデックスではありません。

IList は読み取り専用です。

- または -

IList は固定サイズです。

valueIList の null 参照です。

注釈

このメンバーは、明示的なインターフェイス メンバーの実装です。 これは、Array のインスタンスが IList インターフェイスにキャストされる場合のみ、使用できます。

適用対象