ImmutableDictionary<TKey,TValue>.AddRange(IEnumerable<KeyValuePair<TKey,TValue>>) Método
Definição
Adiciona os pares chave/valor especificados ao dicionário imutável.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)
Parâmetros
- pairs
- IEnumerable<KeyValuePair<TKey,TValue>>
Os pares chave/valor a serem adicionados.The key/value pairs to add.
Retornos
Um novo dicionário imutável que contém os pares chave/valor adicionais.A new immutable dictionary that contains the additional key/value pairs.
Exceções
Uma das chaves fornecidas já existe no dicionário, mas tem um valor diferente.One of the given keys already exists in the dictionary but has a different value.