LicenseServer.AlternateAddress Property

ClosedDescription

Sets and returns the address of the Seagull License Server to be used if the server specified with the LicenseServer.Address property is not available.

ClosedSyntax

LicenseServer.AlternateAddress = Address

Where Address is the address of the computer running the alternate license server.

ClosedRequirements

Version

BarTender 7.50 or higher

Edition

Automation, Enterprise Automation

ClosedRemarks

The LicenseServer.AlternateAddress property sets and returns the address of the the Seagull License Server that should be used if the preferred server (set and returned with the LicenseServer.Address property) is not available. The address can be a server name (e.g., MyServer), a domain name (e.g., Shipping.MyCompany.com), an IP address (e.g., 10.1.1.68), or the asterisk, ("*"). Setting the address to an asterisk will cause BarTender to search for an alternate Seagull License Server on the defined port (AutoDetect). Getting a "*" indicates that BarTender connected to an alternate Seagull License Server on the defined port.

AutoDetect will not find a Seagull License Server that is behind a network router.

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"

'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";

// End the BarTender process

btApp.Quit(BarTender.BtSaveOptions.btDoNotSaveChanges);