Removes all entries from the Hashtable.
[Visual Basic] Overridable Public Sub Clear() [C#] public virtual void Clear(); [C++] public: virtual void Clear(); [JScript] public function Clear();
None.
Exception Type | Condition |
---|---|
NotSupportedException | The Hashtable is read-only. |
This method overrides the Clear method of the Dictionary class and can itself be overridden by a derived class.
Hashtable Class | Hashtable Members | System.Collections Namespace | Clear