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

定義

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

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

參數

index
Int32

要插入元素之以零起始的索引處。

items
IEnumerable<T>

應插入元素的集合。

傳回

插入元素後新的不可變清單。

適用於