.NET Framework (current version)
Gets the current state of the connection.
System.Data.OracleClient (in System.Data.OracleClient.dll)
Public Overrides ReadOnly Property State As ConnectionState
The allowed state changes are:
The following example creates an instance of a derived class, OracleConnection, sets its ConnectionString, and displays its State.
Public Sub createOracleConnection()
Using connection As New OracleConnection()
connection.ConnectionString = _
"Data Source=Oracle8i;Integrated Security=yes"
Console.WriteLine("Connection State: " & connection.State)
Return to top
Available since 1.1