dotConnect for PostgreSQL Documentation
Devart.Data.PostgreSql Namespace / PgSqlConnectionStringBuilder Class / Host Property

Host Property (PgSqlConnectionStringBuilder)
Gets or sets name or IP address of host of PostgreSQL database to which to connect.
Syntax
'Declaration
 
Public Property Host As String
 

Property Value

The name or IP address of host of PostgreSQL database to which to connect. The default value is an empty string ("").
Remarks
You can also list multiple hosts, running in Hot Standby mode, with their ports in the Host parameter of the connection string, separated with commas, like "localhost:5433,db:5440,db:5441;User=postgres;Pwd=postgres;Database=test_multihosts;Target Session=Any". This can be used for load balancing and failover purposes. See Load Balancing and Failover for more information.
Requirements

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

See Also