ImmutableDictionary<TKey,TValue>.AddRange Yöntem

Tanım

Belirtilen anahtar/değer çiftlerini sabit sözlüğe ekler.

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

Parametreler

pairs
IEnumerable<KeyValuePair<TKey,TValue>>

Eklenecek anahtar/değer çiftleri.

Döndürülenler

Ek anahtar/değer çiftlerini içeren yeni bir sabit sözlük.

Özel durumlar

Verilen anahtarlardan biri sözlükte zaten var ancak farklı bir değere sahip.

Şunlara uygulanır