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 (Boolean)

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

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

Parameters

hardClose
true if closure is forced, otherwise false.

Exceptions

Exception Type Condition
ConnectionAlreadyClosed The connection was already in a closed state.
ConnectionTooBusyToClose A transaction is still being processed.

See Also

ADOConnection Class | ADOConnection Members | System.Data.ADO Namespace | ADOConnection.Close Overload List