Removes an object by name from the collection.
public virtual void Remove( string name )
Public Overridable Sub Remove ( name As String )
public: virtual void Remove( String^ name )
| Exception | Condition |
|---|---|
| ArgumentException | Thrown when the name is invalid or not exist in the collection. |
| InvalidOperationException | Thrown when the object is still in use. |