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

In This Topic
Host Property (PgSqlConnectionStringBuilder)
In This Topic
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.
See Also