Returns the current state of the connection.
Visual Basic
NotOverridable Public Readonly Property State As ConnectionState _
Implements IDbConnection.State
C#
public ConnectionState State {get;}
System.Data.ConnectionState.Open if the connection is open, System.Data.ConnectionState.Closed if the connection is closed.