ImmutableList<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

用來取代舊項目的項目。

傳回

新的清單。

實作

備註

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

適用於