IImmutableList<T>.InsertRange(Int32, IEnumerable<T>) 方法

定義

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

public:
 System::Collections::Immutable::IImmutableList<T> ^ InsertRange(int index, System::Collections::Generic::IEnumerable<T> ^ items);
public System.Collections.Immutable.IImmutableList<T> InsertRange (int index, System.Collections.Generic.IEnumerable<T> items);
abstract member InsertRange : int * seq<'T> -> System.Collections.Immutable.IImmutableList<'T>
Public Function InsertRange (index As Integer, items As IEnumerable(Of T)) As IImmutableList(Of T)

參數

index
Int32

應插入新項目處的以零為起始的索引。

items
IEnumerable<T>

要插入的項目。

傳回

新的不可變清單,其中包含指定的項目。

適用於