License
License class
Provides methods to license 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.
License
Name | Description |
---|---|
License() | Initializes a new instance of this class. 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. |
Returns: License
getVersion
Name | Description |
---|---|
getVersion () | Returns version of Aspose.Slides for Java. |
Returns: String
isLicensed
Name | Description |
---|---|
isLicensed () |
Returns: boolean
resetLicense
Name | Description |
---|---|
resetLicense () | Reset the license Use this method to reset license in component License license = new License(); license.resetLicense(); |
Returns: void
setLicense
Name | Description |
---|---|
setLicense (InputStream) | 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 |
---|---|---|
stream | InputStream | A stream that contains the license. Use null to switch to evaluation mode. |
Returns: void
setLicense
Name | Description |
---|---|
setLicense (String) | 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. |
Returns: void