ImmutableSortedDictionary<TKey,TValue>.AddRange Metod

Definition

Lägger till de specifika nyckel/värde-paren i den oföränderliga sorterade ordlistan.

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)

Parametrar

items
IEnumerable<KeyValuePair<TKey,TValue>>

De nyckel/värde-par som ska läggas till.

Returer

En ny oföränderlig ordlista som innehåller ytterligare nyckel/värde-par.

Undantag

En av de givna nycklarna finns redan i ordlistan men har ett annat värde.

Gäller för