Npgsql Api Docs

NpgsqlConnection.State Property

Gets whether the current state of the connection is Open or Closed

[Visual Basic]
Overrides Public ReadOnly Property State As ConnectionState _
    Implements IDbConnection.State
[C#]
public override System.Data.ConnectionState State {get;}

Property Value

ConnectionState.Open or ConnectionState.Closed

Implements

IDbConnection.State

See Also

NpgsqlConnection Class | Npgsql Namespace