Creates a new instance of the object initialized with the current connection string.
[Visual Basic] Overrides Public Function Clone() As Object [C#] public override object Clone(); [C++] public: override Object* Clone(); [JScript] public override function Clone() : Object;
The new instance will be in a closed state.
The following example uses this method within a derived class.
SQLConnection Class | SQLConnection Members | System.Data.SQL Namespace