License Class
Represents GroupDocs.Metadata license. License class should be applied once per AppDomain.
Inheritance Hierarchy
SystemObject
  GroupDocs.MetadataLicense

Namespace: GroupDocs.Metadata
Assembly: GroupDocs.Metadata (in GroupDocs.Metadata.dll) Version: 19.5
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
Determines whether the specified Object is equal to the current Object.
(Inherited from Object.)
Public methodGetHashCode
Serves as a hash function for a particular type.
(Inherited from Object.)
Public methodGetType
Gets the type of the current instance.
(Inherited from Object.)
Public methodSetLicense(Stream)
Licenses the component.
Public methodCode exampleSetLicense(String)
Licenses the component.
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Remarks
To use License class need to have appropriate .lic file. You may buy valid license or contact GroupDocs to obtain temporary license file.
Examples
This example demonstrates how to setup license.
C#
// initialize License class
License license = new License();

// set path to .lic file
license.SetLicense(@"C:\\GroupDocs.Metadata.lic");
See Also