System.Data Namespace
Returns the current state of the connection to a data source.
This enumeration has a FlagsAttribute that allows a bitwise combination of its member values.
Member Name |
Description |
Broken |
The object is broken. This can occur only after the connection has been opened. A connection in this state may be closed and then re-opened. |
Closed |
The object is closed. |
Connecting |
The object is connecting. |
Executing |
The object is executing a command. |
Fetching |
Data is being retrieved. |
Open |
The object is open. |
The ConnectionState values are used by the State property of the OleDbConnection and SqlConnection objects.
NOTE: OleDbConnection and SqlConnection support only the Open and Closed ConnectionState values.