dotConnect for PostgreSQL Documentation
Devart.Data.PostgreSql Namespace / PgSqlCommand Class / TargetSession Property

In This Topic
TargetSession Property (PgSqlCommand)
In This Topic
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
'Declaration
 
Public Property TargetSession As TargetSession
 

Property Value

One of the TargetSession values.
Remarks
By default, the value of the corresponding 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.
See Also