Removes the entry with the specified key from the Hashtable.
[Visual Basic] Overridable Public Sub Remove( _ ByVal key As Object _ ) [C#] public virtual void Remove( object key ); [C++] public: virtual void Remove( Object* key ); [JScript] public function Remove( key : Object );
None.
Exception Type | Condition |
---|---|
ArgumentNullException | key is a null reference (in Visual Basic Nothing). |
NotSupportedException | The Hashtable is read-only. |
This method overrides the Remove method of the Dictionary class and can itself be overridden by a derived class.
Hashtable Class | Hashtable Members | System.Collections Namespace | Add | Remove