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

定義

以指定的項目取代位於指定索引上的項目。

 virtual System::Collections::Immutable::IImmutableList<T> ^ System.Collections.Immutable.IImmutableList<T>.SetItem(int index, T value) = System::Collections::Immutable::IImmutableList<T>::SetItem;
System.Collections.Immutable.IImmutableList<T> IImmutableList<T>.SetItem (int index, T value);
abstract member System.Collections.Immutable.IImmutableList<T>.SetItem : int * 'T -> System.Collections.Immutable.IImmutableList<'T>
override this.System.Collections.Immutable.IImmutableList<T>.SetItem : int * 'T -> System.Collections.Immutable.IImmutableList<'T>
Function SetItem (index As Integer, value As T) As IImmutableList(Of T) Implements IImmutableList(Of T).SetItem

參數

index
Int32

要取代的項目索引。

value
T

要加入清單的值。

傳回

新陣列,會在指定索引處包含 item

實作

備註

這個成員是明確介面成員實作, 只有在 ImmutableArray<T> 執行個體轉換成 IImmutableList<T> 介面時,才能使用這個成員。

適用於