License

License class

Provides methods to license the component.

public sealed class License

Constructors

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

Methods

Name Description
SetLicense(Stream) Licenses the component.
SetLicense(string) Licenses the component.

Remarks

Examples

This example demonstrates how to setup license from the local file.

// Initialize License class.
License license = new License();

// Set path to .lic file.
license.SetLicense("C:\\GroupDocs.Watermark.lic");

See Also