Condividi tramite


ImmutableDictionary<TKey,TValue>.IImmutableDictionary<TKey,TValue>.SetItems Metodo

Definizione

Applica un determinato set di coppie chiave-valore a un dizionario non modificabile, sostituendo le eventuali chiavi in conflitto nel dizionario risultante.

 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

Parametri

items
IEnumerable<KeyValuePair<TKey,TValue>>

Coppie chiave-valore da impostare sulla mappa. Le eventuali chiavi in conflitto con le chiavi esistenti sostituiranno i valori precedenti.

Restituisce

Copia del dizionario non modificabile con coppie chiave-valore aggiornate.

Implementazioni

Si applica a