License Class

License class

Applies a licence in the Aspose licence file format to this process. Without one the library runs in evaluation mode: full output, a per-process document cap, size ceilings and a metadata mark (see EvaluationLimitException). A licence can also be given by the ASPOSE_CSS_LICENSE environment variable, a path or the base64 of the file.

public sealed class License

Constructors

NameDescription
License()Creates a licence object; call License.SetLicense or License.SetLicense on it.

Properties

NameDescription
static State { get; }The state of this process; reads ASPOSE_CSS_LICENSE first when no licence was set.

Methods

NameDescription
SetLicense(Stream)Applies the licence read from stream; throws when it is not accepted.
SetLicense(string)Applies the licence named licenseName; throws when it is not accepted. The first of these that holds it is used: the name as a path; the folder of the Aspose.CSS assembly; the folder of the calling assembly; the folder of the entry assembly; an embedded resource of the calling assembly whose name equals licenseName or ends with “.” and licenseName.

See Also