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

定義

傳回已在指定位置插入指定值的新陣列。

 virtual System::Collections::Immutable::IImmutableList<T> ^ System.Collections.Immutable.IImmutableList<T>.Insert(int index, T element) = System::Collections::Immutable::IImmutableList<T>::Insert;
System.Collections.Immutable.IImmutableList<T> IImmutableList<T>.Insert (int index, T element);
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, element As T) As IImmutableList(Of T) Implements IImmutableList(Of T).Insert

參數

index
Int32

陣列中以零為起始的索引,此為應加入新項目的位置。

element
T

要插入陣列開始處的項目。

傳回

已插入之指定值的新陣列。

實作

備註

這個成員是明確介面成員實作, 只有在 ImmutableArray<T> 執行個體轉換成 IImmutableList<T> 介面時,才能使用這個成員。

適用於