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!

ADOConnection.Close

Closes the connection to the data source.

Overload List

Closes the connection to the data source. This is the preferred method.

[Visual Basic] Overloads Overrides Public Sub Close()
[C#] public override void Close();
[C++] public: override void Close();
[JScript] public override function Close();

Closes the connection to the data source with a boolean that indicates a forced closure.

[Visual Basic] Overloads Protected Sub Close(Boolean)
[C#] protected void Close(bool);
[C++] protected: void Close(bool);
[JScript] protected function Close(Boolean);

Example

The following example creates a connection, opens it, begins a transaction, commits the transaction, rollsback the transaction, then closes the connection.

See Also

ADOConnection Class | ADOConnection Members | System.Data.ADO Namespace