語言

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> 介面時使用。

適用於