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 );
Exception Type | Condition |
---|---|
ConnectionAlreadyClosed | The connection was already in a closed state. |
ConnectionTooBusyToClose | A transaction is still being processed. |
ADOConnection Class | ADOConnection Members | System.Data.ADO Namespace | ADOConnection.Close Overload List