ImmutableDictionary<TKey,TValue>.AddRange(IEnumerable<KeyValuePair<TKey,TValue>>) ImmutableDictionary<TKey,TValue>.AddRange(IEnumerable<KeyValuePair<TKey,TValue>>) ImmutableDictionary<TKey,TValue>.AddRange(IEnumerable<KeyValuePair<TKey,TValue>>) ImmutableDictionary<TKey,TValue>.AddRange(IEnumerable<KeyValuePair<TKey,TValue>>) Method

Definizione

Aggiunge le coppie chiave/valore specificate al dizionario non modificabile.Adds the specified key/value pairs to the immutable dictionary.

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)

Parametri

pairs
IEnumerable<KeyValuePair<TKey,TValue>>

Coppie chiave/valore da aggiungere.The key/value pairs to add.

Restituisce

Nuovo dizionario non modificabile che contiene le coppie chiave/valore aggiuntive.A new immutable dictionary that contains the additional key/value pairs.

Eccezioni

Una delle chiavi specificate esiste già nel dizionario, ma ha un valore diverso.One of the given keys already exists in the dictionary but has a different value.

Si applica a