SetLicense

SetLicense(Stream)

Licenses the component.

public void SetLicense(Stream licenseStream)
Parameter Type Description
licenseStream Stream The 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.Conversion.License lic = new GroupDocs.Conversion.License();
    lic.SetLicense(licenseStream);
}

See Also


SetLicense(string)

Licenses the component.

public void SetLicense(string licensePath)
Parameter Type Description
licensePath String The license path.

Examples

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

string licensePath = "GroupDocs.Conversion.lic";
GroupDocs.Conversion.License lic = new GroupDocs.Conversion.License();
lic.SetLicense(licensePath);

See Also