The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.
OracleConnection::State Property
.NET Framework (current version)
Gets the current state of the connection.
Assembly: System.Data.OracleClient (in System.Data.OracleClient.dll)
public: [BrowsableAttribute(false)] property ConnectionState State { virtual ConnectionState get() override; }
Property Value
Type: System.Data::ConnectionStateA bitwise combination of the ConnectionState values. The default is Closed.
Implements
IDbConnection::StateThe allowed state changes are:
From Closed to Open, using the Open method of the OracleConnection object.
From Open to Closed, using the Close method of the OracleConnection object.
The following example creates an instance of a derived class, OracleConnection, sets its ConnectionString, and displays its State.
.NET Framework
Available since 1.1
Available since 1.1
Show: