ImmutableArray<T>.InsertRange 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
多載
| 名稱 | Description |
|---|---|
| InsertRange(Int32, ImmutableArray<T>) |
在指定的索引處插入指定的值。 |
| InsertRange(Int32, IEnumerable<T>) |
在指定的索引處插入指定的值。 |
InsertRange(Int32, ImmutableArray<T>)
在指定的索引處插入指定的值。
public:
System::Collections::Immutable::ImmutableArray<T> InsertRange(int index, System::Collections::Immutable::ImmutableArray<T> items);
public System.Collections.Immutable.ImmutableArray<T> InsertRange(int index, System.Collections.Immutable.ImmutableArray<T> items);
member this.InsertRange : int * System.Collections.Immutable.ImmutableArray<'T> -> System.Collections.Immutable.ImmutableArray<'T>
Public Function InsertRange (index As Integer, items As ImmutableArray(Of T)) As ImmutableArray(Of T)
參數
- index
- Int32
插入該值的索引。
- items
- ImmutableArray<T>
要插入的元素。
傳回
一個新的不可變陣列,將項目插入於指定的索引。
適用於
InsertRange(Int32, IEnumerable<T>)
在指定的索引處插入指定的值。
public:
System::Collections::Immutable::ImmutableArray<T> InsertRange(int index, System::Collections::Generic::IEnumerable<T> ^ items);
public System.Collections.Immutable.ImmutableArray<T> InsertRange(int index, System.Collections.Generic.IEnumerable<T> items);
member this.InsertRange : int * seq<'T> -> System.Collections.Immutable.ImmutableArray<'T>
Public Function InsertRange (index As Integer, items As IEnumerable(Of T)) As ImmutableArray(Of T)
參數
- index
- Int32
插入該值的索引。
- items
- IEnumerable<T>
要插入的元素。
傳回
一個新的不可變陣列,將項目插入於指定的索引。