setLicense
Contents
[
Hide
]setLicenseFromStream (License license, ReadStream stream, Function callback) function
Licenses the component.
In this example, an attempt will be made to find a license file named MyLicense.lic in the 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.
Parameters
Name | Type | Description |
---|---|---|
license | License | link to self |
stream | ReadStream | A stream that contains the license. Use null to switch to evaluation mode. |
callback | Function | callback(error, result) - Callback to be called when the method has completed |
setLicense(String namePath) function
Licenses the component.
In this example, an attempt will be made to find a license file named MyLicense.lic in the 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.
Parameters
Name | Type | Description |
---|---|---|
namePath | String | Can be a full or short file name or name of an embedded resource. Use an empty string to switch to evaluation mode. |