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

Definición

Aplica un conjunto determinado de pares clave-valor a un diccionario inmutable, reemplazando cualquier clave en conflicto en el diccionario resultante.Applies a given set of key-value pairs to an immutable dictionary, replacing any conflicting keys in the resulting dictionary.

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

Parámetros

items
IEnumerable<KeyValuePair<TKey,TValue>>

Pares clave-valor que se van a establecer en el mapa.The key-value pairs to set on the map. Cualquier clave que esté en conflicto con las claves existentes reemplazará los valores anteriores.Any keys that conflict with existing keys will replace the previous values.

Devoluciones

IImmutableDictionary<TKey,TValue>

Copia del diccionario inmutable con pares clave-valor actualizados.A copy of the immutable dictionary with updated key-value pairs.

Implementaciones

Se aplica a