Share via


ImmutableDictionary<TKey,TValue>.IImmutableDictionary<TKey,TValue>.SetItems Yöntem

Tanım

Belirli bir anahtar-değer çiftleri kümesini sabit bir sözlüğe uygular ve sonuçta elde edilen sözlükteki çakışan anahtarları değiştirir.

 virtual System::Collections::Immutable::IImmutableDictionary<TKey, TValue> ^ System.Collections.Immutable.IImmutableDictionary<TKey,TValue>.SetItems(System::Collections::Generic::IEnumerable<System::Collections::Generic::KeyValuePair<TKey, TValue>> ^ items) = System::Collections::Immutable::IImmutableDictionary<TKey, TValue>::SetItems;
System.Collections.Immutable.IImmutableDictionary<TKey,TValue> IImmutableDictionary<TKey,TValue>.SetItems (System.Collections.Generic.IEnumerable<System.Collections.Generic.KeyValuePair<TKey,TValue>> items);
abstract member System.Collections.Immutable.IImmutableDictionary<TKey,TValue>.SetItems : seq<System.Collections.Generic.KeyValuePair<'Key, 'Value>> -> System.Collections.Immutable.IImmutableDictionary<'Key, 'Value>
override this.System.Collections.Immutable.IImmutableDictionary<TKey,TValue>.SetItems : seq<System.Collections.Generic.KeyValuePair<'Key, 'Value>> -> System.Collections.Immutable.IImmutableDictionary<'Key, 'Value>
Function SetItems (items As IEnumerable(Of KeyValuePair(Of TKey, TValue))) As IImmutableDictionary(Of TKey, TValue) Implements IImmutableDictionary(Of TKey, TValue).SetItems

Parametreler

items
IEnumerable<KeyValuePair<TKey,TValue>>

Eşlem üzerinde ayarlanacağı anahtar-değer çiftleri. Mevcut anahtarlarla çakışan tüm anahtarlar önceki değerlerin yerini alır.

Döndürülenler

Güncelleştirilmiş anahtar-değer çiftlerine sahip sabit sözlüğün kopyası.

Uygulamalar

Şunlara uygulanır