ImmutableList<T>.IImmutableList<T>.Insert(Int32, T) メソッド
定義
重要
一部の情報は、リリース前に大きく変更される可能性があるプレリリースされた製品に関するものです。 Microsoft は、ここに記載されている情報について、明示または黙示を問わず、一切保証しません。
指定した要素を、変更できないリスト内の指定したインデックスに挿入します。
virtual System::Collections::Immutable::IImmutableList<T> ^ System.Collections.Immutable.IImmutableList<T>.Insert(int index, T item) = System::Collections::Immutable::IImmutableList<T>::Insert;
System.Collections.Immutable.IImmutableList<T> IImmutableList<T>.Insert(int index, T item);
abstract member System.Collections.Immutable.IImmutableList<T>.Insert : int * 'T -> System.Collections.Immutable.IImmutableList<'T>
override this.System.Collections.Immutable.IImmutableList<T>.Insert : int * 'T -> System.Collections.Immutable.IImmutableList<'T>
Function Insert (index As Integer, item As T) As IImmutableList(Of T) Implements IImmutableList(Of T).Insert
パラメーター
- index
- Int32
値を挿入する位置のインデックス。
- item
- T
挿入する要素。
返品
指定した要素を含む新しい変更できないリスト。
実装
注釈
このメンバーは、明示的なインターフェイス メンバーの実装です。 ImmutableList<T> インスタンスがIImmutableList<T> インターフェイスにキャストされている場合にのみ使用できます。