ILicense Interface

Provides methods to license the component.

Namespace:  Aspose.Slides
Assembly:  Aspose.Slides (in Aspose.Slides.dll) Version: 21.12.0.0 (21.12)
Syntax
public interface ILicense

The ILicense type exposes the following members.

Methods
  NameDescription
Public methodIsLicensed Obsolete.
Check if licence is applied to component
Public methodCode exampleResetLicense
Reset the license
Public methodCode exampleSetLicense(Stream)
Licenses the component.
Public methodCode exampleSetLicense(String)
Licenses the component.
Examples
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.
[C#]

License license = new License();
license.SetLicense("MyLicense.lic");


[Visual Basic]

Dim license As license = New license
License.SetLicense("MyLicense.lic")
See Also