ImmutableSortedDictionary<TKey,TValue>.SetItems Metoda

Definicja

Ustawia określone pary klucz/wartość w niezmienialnym słowniku posortowanego, prawdopodobnie zastępowanie istniejących wartości dla kluczy.

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)

Parametry

items
IEnumerable<KeyValuePair<TKey,TValue>>

Pary klucz/wartość do ustawienia w słowniku. Jeśli którykolwiek z kluczy już istnieje w słowniku, ta metoda zastąpi poprzednie wartości.

Zwraca

Niezmienny słownik zawierający określone pary klucz/wartość.

Dotyczy