'Declaration Public Property SslOptions As SslOptions
public SslOptions SslOptions {get; set;}
'Declaration Public Property SslOptions As SslOptions
public SslOptions SslOptions {get; set;}
PgSqlConnection conn = new PgSqlConnection("user id=postgres;password=postgres;host=localhost;"); conn.SslOptions.CACert = "E:\\Test\\root.crt"; conn.SslOptions.Cert = "E:\\Test\\client.crt"; conn.SslOptions.Key = "E:\\Test\\client.key"; conn.SslOptions.SslMode = SslMode.Require; conn.Open();
Dim conn As PgSqlConnection = New PgSqlConnection("user id=postgres;password=postgres;host=localhost;") conn.SslOptions.CACert = "E:\Test\root.crt" conn.SslOptions.Cert = "E:\Test\client.crt" conn.SslOptions.Key = "E:\Test\client.key" conn.SslOptions.SslMode = SslMode.Require conn.Open()
Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2