License Class

Aspose.Note for .NET API

License Class

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

Namespace:  Aspose.Note
Assembly:  Aspose.Note (in Aspose.Note.dll) Version: 18.1
Syntax
public class License
Public Class License
public ref class License
type License =  class end

The License type exposes the following members.

Constructors
  NameDescription
Public methodCode exampleLicense
Initializes a new instance of this class.
Top
Methods
  NameDescription
Public methodEquals
Determines whether the specified Object is equal to the current Object.
(Inherited from Object.)
Protected methodFinalize
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object.)
Public methodGetHashCode
Serves as a hash function for a particular type.
(Inherited from Object.)
Public methodGetType
Gets the type of the current instance.
(Inherited from Object.)
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public methodCode exampleSetLicense(Stream)
Licenses the component.
Public methodCode exampleSetLicense(String)
Licenses the component.
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Top
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