LicenseServer.MaxAllowedUsers Property

ClosedDescription

Returns the maximum number of users that can be connected to the Seagull License Server. Read-only.

ClosedSyntax

LicenseServer.MaxAllowedUsers

ClosedRequirements

Version

BarTender 9.01 or higher

Edition

Automation, Enterprise Automation

ClosedRemarks

The LicenseServer.MaxAllowedUsers property returns the number of users that are allowed to connect to the Seagull License Server that BarTender is currently communicating with. If you have an unlimited user license, the LicenseServer.MaxAllowedUsers property will return the integer 0.

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

'Return the maximum number of users that

'can be connected to SLS

MessageBox.Show(btApp.LicenseServer.MaxAllowedUsers.ToString)

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

// Return the maximum number of users that

// can be connected to SLS

MessageBox.Show(btApp.LicenseServer.MaxAllowedUsers.ToString());

// End the BarTender process

btApp.Quit(BarTender.BtSaveOptions.btDoNotSaveChanges);