ImmutableSortedDictionary<TKey,TValue>.AddRange Metoda

Definicja

Dodaje określone pary klucz/wartość do niezmiennego posortowanego słownika.

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>>

Pary klucz/wartość do dodania.

Zwraca

Nowy niezmienny słownik zawierający dodatkowe pary klucz/wartość.

Wyjątki

Jeden z podanych kluczy już istnieje w słowniku, ale ma inną wartość.

Dotyczy