ImmutableDictionary<TKey,TValue>.SetItems メソッド

定義

変更できないディクショナリ内の指定されたキーと値のペアを設定します。キーの既存の値が上書きされる可能性があります。

public:
 System::Collections::Immutable::ImmutableDictionary<TKey, TValue> ^ SetItems(System::Collections::Generic::IEnumerable<System::Collections::Generic::KeyValuePair<TKey, TValue>> ^ items);
public System.Collections.Immutable.ImmutableDictionary<TKey,TValue> SetItems(System.Collections.Generic.IEnumerable<System.Collections.Generic.KeyValuePair<TKey,TValue>> items);
member this.SetItems : seq<System.Collections.Generic.KeyValuePair<'Key, 'Value>> -> System.Collections.Immutable.ImmutableDictionary<'Key, 'Value>
Public Function SetItems (items As IEnumerable(Of KeyValuePair(Of TKey, TValue))) As ImmutableDictionary(Of TKey, TValue)

パラメーター

items
IEnumerable<KeyValuePair<TKey,TValue>>

ディクショナリで設定するキーと値のペア。 いずれかのキーがディクショナリに既に存在する場合、このメソッドは以前の値を上書きします。

返品

指定したキーと値のペアを含む新しい変更できないディクショナリ。

適用対象