ImmutableDictionary<TKey,TValue>.SetItems 메서드

정의

변경할 수 없는 사전에서 지정된 키/값 쌍을 설정합니다. 키의 기존 값을 덮어쓸 수 있습니다.

public:
 System::Collections::Immutable::ImmutableDictionary<TKey, TValue> ^ SetItems(System::Collections::Generic::IEnumerable<System::Collections::Generic::KeyValuePair<TKey, TValue>> ^ items);
public System.Collections.Immutable.ImmutableDictionary<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.ImmutableDictionary<'Key, 'Value>
Public Function SetItems (items As IEnumerable(Of KeyValuePair(Of TKey, TValue))) As ImmutableDictionary(Of TKey, TValue)

매개 변수

items
IEnumerable<KeyValuePair<TKey,TValue>>

사전에서 설정할 키/값 쌍입니다. 사전에 키가 이미 있는 경우 이 메서드는 해당 키의 이전 값을 덮어씁니다.

반환

지정된 키/값 쌍이 포함된 변경할 수 없는 새 사전입니다.

적용 대상