SetLicense

SetLicense(string)

Licenses the component.

public void SetLicense(string filePath)
Parameter Type Description
filePath String Absolute path to license file.

Examples

The following example demonstrates how to set a license passing a path to the license file.

string licensePath = "LicenseFile.lic"";
GroupDocs.Parser.License license = new GroupDocs.Parser.License();
lic.SetLicense(licensePath);

See Also


SetLicense(Stream)

Licenses the component.

public void SetLicense(Stream stream)
Parameter Type Description
stream Stream License stream.

Examples

The following example demonstrates how to set a license passing Stream of the license file.

using (FileStream licenseStream = new FileStream("LicenseFile.lic", FileMode.Open))
{
    GroupDocs.Parser.License license = new GroupDocs.Parser.License();
    license.SetLicense(licenseStream);
}

See Also