Język

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

Definicja

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

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

Implementuje

Wyjątki

Parametr key ma wartość null.

Dotyczy

Zobacz też