Click or drag to resize
DictionaryTKey, TValueRemove Method

Namespace: System.Collections.Generic
Assembly: mscorlib (in mscorlib.dll) Version: 4.0.0.0
Syntax
C#
public bool Remove(
	TKey key
)

Parameters

key
Type: TKey
The key of the element to remove.

Return Value

Type: Boolean
true if the element is successfully found and removed; otherwise, false. This method returns false if key is not found in the DictionaryTKey, TValue.
Exceptions
ExceptionCondition
ArgumentNullExceptionkey is null.
See Also