Removes a specific object from the ArrayList.
[Visual Basic] Overridable Public Sub Remove( _ ByVal obj As Object _ ) [C#] public virtual void Remove( object obj ); [C++] public: virtual void Remove( Object* obj ); [JScript] public function Remove( obj : Object );
None.
Exception Type | Condition |
---|---|
ArgumentException | obj is not found in the ArrayList. |
NotSupportedException | The ArrayList is read-only.
-or- The ArrayList has a fixed size. |
This method can be overridden by a derived class.
ArrayList Class | ArrayList Members | System.Collections Namespace