License Class
Provides methods to license the component.
Inheritance Hierarchy
SystemObject
  GroupDocs.WatermarkLicense

Namespace: GroupDocs.Watermark
Assembly: GroupDocs.Watermark (in GroupDocs.Watermark.dll) Version: 20.7.0
Syntax
public sealed class License

The License type exposes the following members.

Constructors
  NameDescription
Public methodLicense
Initializes a new instance of the License class.
Methods
  NameDescription
Public methodEquals (Inherited from Object.)
Public methodGetHashCode (Inherited from Object.)
Public methodGetType (Inherited from Object.)
Public methodSetLicense(Stream)
Licenses the component.
Public methodSetLicense(String)
Licenses the component.
Public methodToString (Inherited from Object.)
Remarks
Examples
This example demonstrates how to setup license from the local file.
C#
// Initialize License class.
License license = new License();

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