Open this page in the API Guide

ILicenseService.InstallLicense Method

Installs a license.

Namespace:  Dundas.BI.Licensing
Assembly:  Dundas.BI.Core (in Dundas.BI.Core.dll) Version: 2.0.0.0 (25.1.0.1000)
Syntax
LicenseBase InstallLicense(
	string licenseText
)

Parameters

licenseText
Type: System.String
The textual representation of the license.

Return Value

Type: LicenseBase
The license that was added or replaced.
Exceptions
ExceptionCondition
ArgumentExceptionlicenseText is empty or null.
ValidationException

The license text could not be parsed.

-or-

The signature of the license doesn't match its properties.

NoPrivilegeExceptionThe caller does not have system administration privileges.
InvalidSessionExceptionThe caller context is not associated with a valid session.
Remarks

If a license with the same ID is already installed, it will be replaced with the provided one.

Tip Tip
If no exception is thrown, this method triggers the LicenseChanged event hook.
See Also