ImmutableSortedDictionary<TKey,TValue>.SetItems Metodo

Definizione

Imposta le coppie chiave/valore specificate nel dizionario ordinato non modificabile, eventualmente sovrascrivendo i valori esistenti per le chiavi.

public:
 System::Collections::Immutable::ImmutableSortedDictionary<TKey, TValue> ^ SetItems(System::Collections::Generic::IEnumerable<System::Collections::Generic::KeyValuePair<TKey, TValue>> ^ items);
public System.Collections.Immutable.ImmutableSortedDictionary<TKey,TValue> SetItems (System.Collections.Generic.IEnumerable<System.Collections.Generic.KeyValuePair<TKey,TValue>> items);
member this.SetItems : seq<System.Collections.Generic.KeyValuePair<'Key, 'Value>> -> System.Collections.Immutable.ImmutableSortedDictionary<'Key, 'Value>
Public Function SetItems (items As IEnumerable(Of KeyValuePair(Of TKey, TValue))) As ImmutableSortedDictionary(Of TKey, TValue)

Parametri

items
IEnumerable<KeyValuePair<TKey,TValue>>

Coppie chiave/valore da impostare nel dizionario. Se una qualsiasi delle chiavi esiste già nel dizionario, questo metodo sovrascriverà i valori precedenti.

Restituisce

ImmutableSortedDictionary<TKey,TValue>

Dizionario non modificabile che contiene la coppia chiave/valore specificata.

Si applica a