ImmutableInterlocked.TryRemove<TKey,TValue> Metodo

Definizione

Rimuove l'elemento con la chiave specificata, se la chiave esiste.

public:
generic <typename TKey, typename TValue>
 static bool TryRemove(System::Collections::Immutable::ImmutableDictionary<TKey, TValue> ^ % location, TKey key, [Runtime::InteropServices::Out] TValue % value);
public static bool TryRemove<TKey,TValue>(ref System.Collections.Immutable.ImmutableDictionary<TKey,TValue> location, TKey key, out TValue value);
static member TryRemove : ImmutableDictionary * 'Key * 'Value -> bool
Public Shared Function TryRemove(Of TKey, TValue) (ByRef location As ImmutableDictionary(Of TKey, TValue), key As TKey, ByRef value As TValue) As Boolean

Parametri di tipo

TKey

Tipo delle chiavi contenute nell'insieme.

TValue

Tipo dei valori contenuti nell'insieme.

Parametri

location
ImmutableDictionary<TKey,TValue>

Dizionario da aggiornare.

key
TKey

Chiave da rimuovere.

value
TValue

Riceve il valore dell'elemento rimosso, se il dizionario non è vuoto.

Valori restituiti

true se la chiave è stata trovata e rimossa; in caso contrario, false.

Si applica a