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.Merger.License lic = new GroupDocs.Merger.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.Merger.lic";
GroupDocs.Merger.License lic = new GroupDocs.Merger.License();
lic.SetLicense(licensePath);

See Also