Gets the current state of the connection.
A bitwise combination of the ConnectionState values. The default is Closed.
NpgsqlConnection Class | Npgsql Namespace