Aspose::Cells::License class

License class

Provides methods to license the component.

class License

Methods

MethodDescription
IsNull() constChecks whether the implementation object is nullptr.
License()Default constructor.
License(License_Impl* impl)Constructs from an implementation object. Internal use.
License(const License& src)Copy constructor.
explicit operator bool() constoperator bool()
operator=(const License& src)operator=
SetLicense(U16String& licenseName)Licenses the component.
SetLicense(const char16_t* licenseName)Licenses the component.
SetLicense(Vector <uint8_t>& stream)Licenses the component.
~License()Destructor.

Fields

FieldDescription
_implThe implementation object.

Examples

Aspose::Cells::Startup();
//In this example, an attempt will be made to find a license file named MyLicense.lic
//in the folder that contains

License license;
license.SetLicense(u"License.lic");//your license file
Aspose::Cells::Cleanup();

See Also