set_license method
set_license
Licenses the component.
def set_license(self, license_stream):
...
| Parameter | Type | Description |
|---|---|---|
| license_stream | io.RawIOBase | The license stream. |
Exceptions
| Exception | Description |
|---|---|
| ArgumentNullException | Thrown when license_stream is null. |
Example
The following example demonstrates how to set a license passing Stream of the license file.
set_license
Licenses the component.
def set_license(self, license_path):
...
| Parameter | Type | Description |
|---|---|---|
| license_path | System.String | The license file path. |
Exceptions
| Exception | Description |
|---|---|
| ArgumentException | Thrown when license_path is null or empty string. |
Example
The following example demonstrates how to set a license passing a path to the license file.
See Also
- module
groupdocs.viewer - class
License