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

See Also