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

Definicja

Usuwa element z określonym kluczem z elementu 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

Klucz elementu do usunięcia.

Zwraca

Wartość true, jeśli element zostanie pomyślnie usunięty; w przeciwnym razie — false. Ta metoda zwraca również wartość false , jeśli key nie została znaleziona w oryginalnym IDictionary<TKey,TValue>obiekcie .

Implementuje

Wyjątki

key to null.

Dotyczy

Zobacz też