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

Definición

 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

Clave de la entrada que se va a agregar.Key of entry to be added.

value
TValue

Valor de la entrada que se va a agregar.Value of the entry to be added.

Devoluciones

IImmutableDictionary<TKey,TValue>

Nuevo diccionario inmutable que contiene el par de clave-valor especificado.A new immutable dictionary that contains the specified key/value pair.

Implementaciones

Se aplica a