Mono Class Library: System.Data.SqlClient.SqlConnection Overview | Members

System.Data.SqlClient.SqlConnection.State Property

Gets the current connection state.

[System.ComponentModel.DesignerSerializationVisibility(System.ComponentModel.DesignerSerializationVisibility.Hidden)]
[System.ComponentModel.Browsable(false)]
public override System.Data.ConnectionState State { get; }

Value

The current connection state, represented by an instance of the System.Data.ConnectionState enum.

Remarks

Gets the current connection state on the System.Data.SqlClient.SqlConnection instance. This value indicates whether the connection is open or closed.

Requirements

Namespace: System.Data.SqlClient
Assembly: System.Data (in System.Data.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0