System.Data.IDbConnection.State Property

Gets the current state of the connection.

Syntax

public ConnectionState State { get; }

Value

Documentation for this section has not yet been entered.

Remarks

The allowed state changes are:

  • From Closed to Open, using the Open method of the Connection object.

  • From Open to Closed, using either the Close method or the Dispose method of the Connection object.

Requirements

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