LicenseServer.AlternateRetries Property

ClosedDescription

Sets and returns the number of times that BarTender will attempt to connect to the alternate Seagull License Server.

ClosedSyntax

LicenseServer.AlternateRetries = Value

Where Value is the total number of retries that will be attempted to connect to the alternate Seagull License Server.

ClosedRequirements

Version

BarTender 9.01 or higher

Edition

Automation, Enterprise Automation

ClosedVB.NET Example

'Declare a BarTender application variable

Dim btApp As BarTender.Application

'Create a new instance of BarTender

btApp = New BarTender.Application

'Set the BarTender application visible

btApp.Visible = True

'Set the license server address property

btApp.LicenseServer.Address = "MyPC"

'Set the alternate license server address property

btApp.LicenseServer.AlternateAddress = "MyBackupPC"

'Set the number of times BarTender will attempt to connect to the license server

btApp.LicenseServer.Retries = 3

'Set the number of times BarTender will attempt to connect to the alternate license server

btApp.LicenseServer.AlternateRetries = 3

'End the BarTender process

btApp.Quit(BarTender.BtSaveOptions.btDoNotSaveChanges)

ClosedC# Example

// Declare a BarTender application variable

BarTender.Application btApp;

// Create a new instance of BarTender

btApp = new BarTender.Application();

// Set the BarTender application visible

btApp.Visible = true;

// Set the license server address property

btApp.LicenseServer.Address = "MyPC";

// Set the alternate license server address property

btApp.LicenseServer.AlternateAddress = "MyBackupPC";

// Set the number of times BarTender will attempt to connect to the license server

btApp.LicenseServer.Retries = 3;

// Set the number of times BarTender will attempt to connect to the alternate license server

btApp.LicenseServer.AlternateRetries = 3;

// End the BarTender process

btApp.Quit(BarTender.BtSaveOptions.btDoNotSaveChanges);