LicenseServer.AlternatePort Property

ClosedDescription

Sets and returns the port used to communicate with an alternate Seagull License Server when the preferred server is not available.

ClosedSyntax

LicenseServer.AlternatePort = Value

Where Value is an integer between 1024 and 65535, specifying the port used to communicate with the alternate Seagull License Server.

ClosedRequirements

Version

BarTender 7.50 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 port

btApp.LicenseServer.Port = 5160

'Set the alternate license server port

btApp.LicenseServer.AlternatePort = 6000

'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 port

btApp.LicenseServer.Port = 5160;

//Set the alternate license server port

btApp.LicenseServer.AlternatePort = 6000;

//End the BarTender process

btApp.Quit(BarTender.BtSaveOptions.btDoNotSaveChanges);