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

定义

请参阅 IImmutableDictionary<TKey,TValue> 接口。

 virtual System::Collections::Immutable::IImmutableDictionary<TKey, TValue> ^ System.Collections.Immutable.IImmutableDictionary<TKey,TValue>.SetItem(TKey key, TValue value) = System::Collections::Immutable::IImmutableDictionary<TKey, TValue>::SetItem;
System.Collections.Immutable.IImmutableDictionary<TKey,TValue> IImmutableDictionary<TKey,TValue>.SetItem (TKey key, TValue value);
abstract member System.Collections.Immutable.IImmutableDictionary<TKey,TValue>.SetItem : 'Key * 'Value -> System.Collections.Immutable.IImmutableDictionary<'Key, 'Value>
override this.System.Collections.Immutable.IImmutableDictionary<TKey,TValue>.SetItem : 'Key * 'Value -> System.Collections.Immutable.IImmutableDictionary<'Key, 'Value>
Function SetItem (key As TKey, value As TValue) As IImmutableDictionary(Of TKey, TValue) Implements IImmutableDictionary(Of TKey, TValue).SetItem

参数

key
TKey

要添加的项的键。

value
TValue

要添加的条目的值。

返回

一个新的不可变字典,其中包含指定的键/值对。

实现

适用于