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

定義

指定したキーと値のペアを変更できないディクショナリに追加します。

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

パラメーター

pairs
IEnumerable<KeyValuePair<TKey,TValue>>

追加するキーと値のペア。

返品

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

例外

指定されたキーの 1 つがディクショナリに既に存在しますが、値が異なります。

適用対象