LicenseServer.Port Property

ClosedDescription

Sets and returns the port used to communicate with the Seagull License Server.

ClosedSyntax

LicenseServer.Port = Value

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

ClosedRequirements

Version

BarTender 6.12 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 variable

btApp = New BarTender.Application

'Set the BarTender application visible

btApp.Visible = True

'Set the license server port to 5160

btApp.LicenseServer.Port = 5160

'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 to 5160

btApp.LicenseServer.Port = 5160;

// End the BarTender process

btApp.Quit(BarTender.BtSaveOptions.btDoNotSaveChanges);