LicenseServer.MaxAllowedUsers Property

ClosedDescription

Returns the maximum number of users that can be connected to the BarTender Licensing Service. Read-only.

ClosedSyntax

LicenseServer.MaxAllowedUsers

ClosedRequirements

Version

BarTender 9.01 or higher

Edition

Automation, Enterprise

ClosedRemarks

The LicenseServer.MaxAllowedUsers property returns the number of users that are allowed to connect to the BarTender Licensing Service that BarTender is currently communicating with. If you have an unlimited user license, the LicenseServer.MaxAllowedUsers property returns 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 the BarTender Licensing Service

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 the BarTender Licensing Service

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

// End the BarTender process

btApp.Quit(BarTender.BtSaveOptions.btDoNotSaveChanges);