Removes the entry with the specified key from the Dictionary.
[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 Dictionary is read-only. |
This method can be overridden by a derived class.
Dictionary Class | Dictionary Members | System.Collections Namespace | Add