
## Dispose (1 of 2) {#dispose_1}

Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.

**Returns:** void Aspose::Email::

```cpp
Dispose()
```

---

## Dispose (2 of 2) {#dispose_2}

Releases unmanaged and - optionally - managed resources.

**Returns:** virtual void Aspose::Email::

```cpp
Dispose(bool disposing)
```

| Parameter | Description |
| --- | --- |
| disposing | true to release both managed and unmanaged resources; false to release only unmanaged resources. |

