DbConnection.State Property

Definition

Gets a string that describes the state of the connection.

public:
 abstract property System::Data::ConnectionState State { System::Data::ConnectionState get(); };
public abstract System.Data.ConnectionState State { get; }
[System.ComponentModel.Browsable(false)]
public abstract System.Data.ConnectionState State { get; }
member this.State : System.Data.ConnectionState
[<System.ComponentModel.Browsable(false)>]
member this.State : System.Data.ConnectionState
Public MustOverride ReadOnly Property State As ConnectionState

Property Value

The state of the connection. The format of the string returned depends on the specific type of connection you are using.

Implements

Attributes

Applies to

See also