When overridden in a derived class, creates a clone of this instance of DBCommand.
[Visual Basic] Overridable Public Function Clone() As Object [C#] public virtual object Clone(); [C++] public: virtual Object* Clone(); [JScript] public function Clone() : Object;
The System.Data.Internal.DBCommand.ActiveConnection, the System.Data.Internal.DBCommand.CommandTimeout, and the System.Data.Internal.DBCommand.Properties collection are shared, not cloned.
Notes to Inheritors: When overriding Clone in a derived class, be sure to call the base class's Clone method.
DBCommand Class | DBCommand Members | System.Data.Internal Namespace