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
    public TargetSession TargetSession {get; set;}

    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.
    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