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

Definitie

Hiermee verwijdert u het element met de opgegeven sleutel uit de 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

Parameters

key
TKey

De sleutel van het element dat moet worden verwijderd.

Retouren

true als het element is verwijderd; anders, false. Deze methode retourneert false ook als key deze niet is gevonden in het origineel IDictionary<TKey,TValue>.

Implementeringen

Uitzonderingen

key is null.

Van toepassing op

Zie ook