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

定義

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

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

パラメーター

items
IEnumerable<KeyValuePair<TKey,TValue>>

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

戻り値

指定したキーと値のペアが格納されている、新しい変更できないディクショナリ。

適用対象