共用方式為


ImmutableDictionary<TKey,TValue>.IImmutableDictionary<TKey,TValue>.SetItems 方法

定義

將一組指定的索引鍵/值組套用至固定字典,以取代所產生字典中的任何衝突索引鍵。

 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

參數

items
IEnumerable<KeyValuePair<TKey,TValue>>

要在地圖上設定的索引鍵/值組。 任何與現有索引鍵衝突的索引鍵都會取代舊值。

傳回

固定字典的複本,其中包含更新的索引鍵/值組。

實作

適用於