License
Contents
[
Hide
]
License class
Provides methods to license the component.
public class License
Constructors
Name | Description |
---|---|
License() | The default constructor. |
Methods
Name | Description |
---|---|
SetLicense(Stream) | Licenses the component. |
SetLicense(string) | Licenses the component. |
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");
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);
}
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
- namespace Aspose.Note
- assembly Aspose.Note