IImmutableList<T>.Insert(Int32, T) 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
在不可變清單中,於指定的索引處插入指定的專案。
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
要插入的物件。
傳回
一個包含指定元素的新不變清單。