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

Definice

Odebere prvek se zadaným klíčem z objektu IDictionary<TKey,TValue>.

 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

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 IDictionary<TKey,TValue>souboru .

Implementuje

Výjimky

key je null.

Platí pro

Viz také