Npgsql API Documentation

NpgsqlConnection.State Property

[This is preliminary documentation and subject to change.]

Gets the current state of the connection.

[Visual Basic]
<Browsable(Browsable=False)>
NotOverridable Public ReadOnly Property State As ConnectionState Implements _
   IDbConnection.State
[C#]
[Browsable(Browsable=False)]
public System.Data.ConnectionState State {get;}

Property Value

A bitwise combination of the ConnectionState values. The default is Closed.

Implements

IDbConnection.State

See Also

NpgsqlConnection Class | Npgsql Namespace