ImmutableArray<T>.Insert(Int32, T) 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
傳回新的陣列,其中包含在指定位置插入的指定值。
public:
System::Collections::Immutable::ImmutableArray<T> Insert(int index, T item);
public System.Collections.Immutable.ImmutableArray<T> Insert(int index, T item);
member this.Insert : int * 'T -> System.Collections.Immutable.ImmutableArray<'T>
Public Function Insert (index As Integer, item As T) As ImmutableArray(Of T)
參數
- index
- Int32
新項目應加入的陣列中以 0 為基礎的索引。
- item
- T
要插入在陣列起始的項目。
傳回
一個新陣列,將該項目插入指定的索引。