NGWS SDK Documentation  

This is preliminary documentation and subject to change.
To comment on this topic, please send us email at ngwssdk@microsoft.com. Thanks!

DBCommand.Clone

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;

Remarks

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.

See Also

DBCommand Class | DBCommand Members | System.Data.Internal Namespace