ImmutableList<T>.IImmutableList<T>.Insert(Int32, T) 方法

定義

將指定的項目插入至不可變清單中的指定索引處。

 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> 介面時,才能使用這個成員。

適用於