Compartilhar via


ImmutableDictionary<TKey,TValue>.IImmutableDictionary<TKey,TValue>.SetItem Método

Definição

Consulte a interface 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

Parâmetros

key
TKey

A chave da entrada a ser adicionada.

value
TValue

O valor da entrada a ser adicionada.

Retornos

Um novo dicionário imutável que contém o par chave/valor especificado.

Implementações

Aplica-se a