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> インターフェイスにキャストされている場合にのみ使用できます。

適用対象