
## SetLicense (1 of 2) {#setlicense_1}

Licenses the component.

**Returns:** void Aspose::Tasks::

```cpp
SetLicense(const System::SharedPtr< System::IO::Stream > & stream)
```

| Parameter | Description |
| --- | --- |
| stream | A stream that contains the license. |

---

## SetLicense (2 of 2) {#setlicense_2}

Licenses the component.

**Returns:** void Aspose::Tasks::

```cpp
SetLicense(const System::String & licenseName)
```

| Parameter | Description |
| --- | --- |
| licenseName | Can be a full or short file name or name of an embedded resource. Use an empty string to switch to evaluation mode. |

