'Declaration Public Shadows Property State As ConnectionState
public new ConnectionState State {get; set;}
'Declaration Public Shadows Property State As ConnectionState
public new ConnectionState State {get; set;}
public void CreatePgSqlConnection() { PgSqlConnection pgConnection = new PgSqlConnection(); pgConnection.ConnectionString = "host=server;database=test;user id=postgres;"; pgConnection.Open(); MessageBox.Show("Connection State: " + pgConnection.State.ToString()); pgConnection.Close(); }
Public Sub CreatePgSqlConnection() Dim pgConnection As New PgSqlConnection() pgConnection.ConnectionString = _ "host=server;database=test;user id=postgres;" pgConnection.Open() MessageBox.Show("Connection State: " + pgConnection.State.ToString()) pgConnection.Close() End Sub