IImmutableDictionary<TKey,TValue>.AddRange(IEnumerable<KeyValuePair<TKey,TValue>>) Método

Definición

Agrega los pares clave-valor especificados al diccionario.Adds the specified key/value pairs to the dictionary.

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

Parámetros

pairs
IEnumerable<KeyValuePair<TKey,TValue>>

Pares clave-valor que se va a agregar.The key/value pairs to add.

Devoluciones

IImmutableDictionary<TKey,TValue>

Nuevo diccionario inmutable que contiene los pares clave-valor adicionales.A new immutable dictionary that contains the additional key/value pairs.

Excepciones

Una de las claves especificadas ya existe en el diccionario, pero tiene un valor diferente.One of the given keys already exists in the dictionary but has a different value.

Se aplica a