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

Determines how the host to connect to is selected from the list when multiple hosts are specified in the Host connection string parameter of the command connection. See Load Balancing and Failover for more information.

Syntax

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

Property Value

One of the TargetSession values.

Remarks

By default, the value of the corresponding Devart.Data.PostgreSql.PgSqlConnectionStringBuilder.TargetSession connection string parameter is used. However, if you set this property for a command explicitly, it overrides the connection settings for this command.

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