LicenseSetLicense Method (String)
Licenses the component.

Namespace: GroupDocs.Viewer
Assembly: GroupDocs.Viewer (in GroupDocs.Viewer.dll) Version: 19.5
Syntax
public void SetLicense(
	string licensePath
)

Parameters

licensePath
Type: SystemString
The license path.
Examples
The following example demonstrates how to set a license passing a path to the license file.
C#
string licensePath = "GroupDocs.Viewer.lic";
GroupDocs.Viewer.License lic = new GroupDocs.Viewer.License();
lic.SetLicense(licensePath);
See Also