dotConnect for PostgreSQL Documentation
Host Property
See Also  support@devart.com
Devart.Data.PostgreSql Namespace > PgSqlConnectionStringBuilder Class : Host Property

Gets or sets name or IP address of host of PostgreSQL database to which to connect.

Syntax

Visual Basic (Declaration) 
Public Property Host As String
C# 
public string Host {get; set;}

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

Platforms:Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family, Windows Vista, Windows Server 2008 family, Windows 7, Windows 8, Windows 10, Windows Server 2012 family.

See Also