License class

License class

Provides methods to license the component. To learn more, visit the Licensing and Subscription documentation article.

Constructors

Name Description
License() Initializes a new instance of this class.

Methods

Name Description
set_license(license_name) Licenses the component.
set_license(stream) Licenses the component.

Examples

Shows how initialize a license for Aspose.Words using a license file in the local file system.

# Set the license for our Aspose.Words product by passing the local file system filename of a valid license file.
license = aw.License()
license.set_license(LICENSE_PATH)

See Also