SetLicense
Leave feedback
On this page
Licenses the component.
public void SetLicense(string licenseName)
| Parameter | Type | Description |
|---|---|---|
| licenseName | String | Can be a full or short file name or name of an embedded resource. Use an empty string to switch to evaluation mode. |
Tries to find the license in the following locations:
-
Explicit path.
-
The folder that contains the GroupDocs component assembly.
-
The folder that contains the client’s calling assembly.
-
The folder that contains the entry (startup) assembly.
-
An embedded resource in the client’s calling assembly.
- class License
- namespace GroupDocs.Assembly
- assembly GroupDocs.Assembly
Licenses the component.
public void SetLicense(Stream stream)
| Parameter | Type | Description |
|---|---|---|
| stream | Stream | A stream that contains the license. |
Use this method to load a license from a stream.
- class License
- namespace GroupDocs.Assembly
- assembly GroupDocs.Assembly
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.