ImmutableDictionary<TKey,TValue>.IDictionary<TKey,TValue>.Remove Metoda

Definice

Odebere prvek se zadaným klíčem z obecného slovníku.

 virtual bool System.Collections.Generic.IDictionary<TKey,TValue>.Remove(TKey key) = System::Collections::Generic::IDictionary<TKey, TValue>::Remove;
bool IDictionary<TKey,TValue>.Remove (TKey key);
abstract member System.Collections.Generic.IDictionary<TKey,TValue>.Remove : 'Key -> bool
override this.System.Collections.Generic.IDictionary<TKey,TValue>.Remove : 'Key -> bool
Function Remove (key As TKey) As Boolean Implements IDictionary(Of TKey, TValue).Remove

Parametry

key
TKey

Klíč prvku, který chcete odebrat.

Návraty

Boolean

Hodnota true, pokud je element úspěšně odebrán, v opačném případě hodnota false Tato metoda také vrátí false , pokud key nebyla nalezena v původním obecném slovníku.

Implementuje

Výjimky

key je null.

Platí pro