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!

SQLConnection.Clone

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;

Remarks

The new instance will be in a closed state.

Example

The following example uses this method within a derived class.

See Also

SQLConnection Class | SQLConnection Members | System.Data.SQL Namespace