LicenseServer.Address Property

ClosedDescription

Returns the location where the detected BarTender Licensing Server that owns BarTender's active license (PKC) is running. Read-only.

ClosedSyntax

LicenseServer.Address

ClosedRequirements

Version

BarTender 6.12 or higher

Edition

Automation, Enterprise

ClosedRemarks

The LicenseServer.Address property returns the address of the computer where the BarTender Licensing Service owning the active license is running.

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

'Show the address of the BarTender Licensing Service if BarTender is connected to it

If btApp.LicenseServer.Connect = True Then

MessageBox.Show(btApp.LicenseServer.Address)

Else

MessageBox.Show("Not Connected")

End If

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

// Show the address of the BarTender Licensing Service if BarTender is connected to it

if (btApp.LicenseServer.Connect())

{

MessageBox.Show(btApp.LicenseServer.Address);

}

else

{

MessageBox.Show("Not Connected");

}

// End the BarTender process

btApp.Quit(BarTender.BtSaveOptions.btDoNotSaveChanges);