A Sandcastle Documented Class Library

# ILicenseService InstallLicense Method

Installs a license.

Namespace: Dundas.BI.Licensing
Assembly: Dundas.BI.Core (in Dundas.BI.Core.dll) Version: 2.0.0.0 (10.0.0.1002)
Syntax
C#
VB
C++
F#
Copy

    LicenseBase InstallLicense(
    	string licenseText
    )

    Function InstallLicense (
    	licenseText As String
    ) As LicenseBase

    LicenseBase^ InstallLicense(
    	String^ licenseText
    )

    abstract InstallLicense :
            licenseText : string -> LicenseBase

#### Parameters

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

#### Return Value

Type: LicenseBase
The license that was added or replaced.
Exceptions

Exception | Condition
--- | ---
ArgumentException | licenseText is empty or .
ValidationException | The license text could not be parsed. -or- The signature of the license doesn't match its properties.
NoPrivilegeException | The caller does not have system administration privileges.
InvalidSessionException | The 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
If no exception is thrown, this method triggers the LicenseChanged event hook.

See Also

#### Reference

ILicenseService Interface
Dundas.BI.Licensing Namespace