License Class

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

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

The License type exposes the following members.

Constructors
  NameDescription
Public methodLicense
Initializes a new instance of the License 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
Shows how to load a license for Aspose.Note from a file.
Aspose.Note.License license = new Aspose.Note.License();
license.SetLicense("Aspose.Note.lic");
Examples
Shows how to load a license for Aspose.Note from a stream.
Aspose.Note.License license = new Aspose.Note.License();
using (FileStream myStream = new FileStream("Aspose.Note.lic", FileMode.Open))
{
    license.SetLicense(myStream);
}
Examples
Shows how to load a license for Aspose.Note from embedded file resource.
// Instantiate the License class
Aspose.Note.License license = new Aspose.Note.License();

// Pass only the name of the license file embedded in the assembly
license.SetLicense("Aspose.Note.lic");
See Also