SetLicense
Leave feedback
On this page
Licenses the component.
public void SetLicense(Stream licenseStream)
| Parameter | Type | Description |
|---|---|---|
| licenseStream | Stream | The license stream. |
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);
}
- class License
- namespace GroupDocs.Conversion
- assembly GroupDocs.Conversion
Licenses the component.
public void SetLicense(string licensePath)
| Parameter | Type | Description |
|---|---|---|
| licensePath | String | The license path. |
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);
- class License
- namespace GroupDocs.Conversion
- assembly GroupDocs.Conversion
Was this page helpful?
Any additional feedback you'd like to share with us?
Please tell us how we can improve this page.
Thank you for your feedback!
We value your opinion. Your feedback will help us improve our documentation.