語言

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

定義

在不可變清單中,於指定的索引處插入指定的專案。

public:
 System::Collections::Immutable::IImmutableList<T> ^ Insert(int index, T element);
public System.Collections.Immutable.IImmutableList<T> Insert(int index, T element);
abstract member Insert : int * 'T -> System.Collections.Immutable.IImmutableList<'T>
Public Function Insert (index As Integer, element As T) As IImmutableList(Of T)

參數

index
Int32

以零為基礎的索引,用來插入該值。

element
T

要插入的物件。

傳回

一個包含指定元素的新不變清單。

適用於