License Class

Provides methods to license the component.
Inheritance Hierarchy
SystemObject
  Aspose.NoteLicense

Namespace:  Aspose.Note
Assembly:  Aspose.Note (in Aspose.Note.dll) Version: 20.3
Syntax
public class License

The License type exposes the following members.

Constructors
  NameDescription
Public methodCode exampleLicense
Initializes a new instance of this class.
Methods
  NameDescription
Public methodEquals (Inherited from Object.)
Protected methodFinalize (Inherited from Object.)
Public methodGetHashCode (Inherited from Object.)
Public methodGetType (Inherited from Object.)
Protected methodMemberwiseClone (Inherited from Object.)
Public methodCode exampleSetLicense(Stream)
Licenses the component.
Public methodCode exampleSetLicense(String)
Licenses the component.
Public methodToString (Inherited from Object.)
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")
the component jar file:
License license = new License();
license.setLicense("MyLicense.lic");
See Also