See Also

OracleConnection Class  | OracleConnection Members

Language

Visual Basic

C#

Show All

See AlsoLanguagesDevart.Data.OracleSend comments on this topic.

Close Method

Devart.Data.Oracle Namespace > OracleConnection Class : Close Method (OracleConnection)

Closes the connection to the database. This is the preferred method of closing any open connection.

[Visual Basic]
Overrides Public Sub Close()
[C#]
public override void Close();

Remarks

The Close method rolls back any pending transactions. It then releases the connection to the connection pool, or closes the connection if connection pooling is disabled.

Note that you must manually close all connections opened by the application. If a DbConnection goes out of scope, it is not closed automatically till the application shuts down.

An application can call Close more than one time without generating an exception.

See Also

OracleConnection Class  | OracleConnection Members

 

 


© 2002 - 2013 Devart. All Rights Reserved.