ImmutableSortedDictionary<TKey,TValue>.AddRange Metoda

Definice

Přidá konkrétní páry klíč/hodnota do neměnného seřazeného slovníku.

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

Parametry

items
IEnumerable<KeyValuePair<TKey,TValue>>

Páry klíč/hodnota, které se mají přidat.

Návraty

Nový neměnný slovník, který obsahuje další páry klíč/hodnota.

Výjimky

Jeden z daných klíčů už ve slovníku existuje, ale má jinou hodnotu.

Platí pro