ImmutableArray<T>.SetItem(Int32, T) 方法

定義

將位於指定索引處的專案取代為指定的專案。

public:
 System::Collections::Immutable::ImmutableArray<T> SetItem(int index, T item);
public System.Collections.Immutable.ImmutableArray<T> SetItem(int index, T item);
member this.SetItem : int * 'T -> System.Collections.Immutable.ImmutableArray<'T>
Public Function SetItem (index As Integer, item As T) As ImmutableArray(Of T)

參數

index
Int32

要替換的項目索引。

item
T

要加入清單的項目。

傳回

包含指定索引位置的新陣列 item

適用於