LicenseServer.AlternateRetries Property |
Sets and returns the number of times that BarTender will attempt to connect to the alternate Seagull License Server.
LicenseServer.AlternateRetries = Value
Where Value is the total number of retries that will be attempted to connect to the alternate Seagull License Server.
Version |
BarTender 9.01 or higher |
Edition |
Automation, Enterprise Automation |
'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)
// 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);