License

License class

Provides methods to license the component.

Example

In this example, an attempt will be made to find a license file named Aspose.Cells.lic in the input folder that contains the component, in the folder that contains the calling assembly,in the folder of the entry assembly and then in the embedded resources of the calling assembly.

const { License } = require("aspose.cells.node");

var license = new License();
license.setLicense("input/Aspose.Cells.lic");

Constructors

NameDescription
constructor()Initializes a new instance of this class.

Methods

MethodDescription
setLicense(string)Licenses the component.
setLicense(Uint8Array)Licenses the component.

constructor()

Initializes a new instance of this class.

constructor();

setLicense(string)

Licenses the component.

setLicense(licenseName: string) : void;

Parameters:

ParameterTypeDescription
licenseNamestringThe license file path.

setLicense(Uint8Array) {setLicense-uint8array-}

Licenses the component.

setLicense(stream: Uint8Array): void;

Parameters:

ParameterTypeDescription
streamUint8ArrayA stream that contains the license.