
## Logout (1 of 2) {#logout_1}

Sign in to a server

**Returns:** void Aspose::Email::Clients::Imap::

```cpp
Logout()
```

---

## Logout (2 of 2) {#logout_2}

Sign in to a server

**Returns:** void Aspose::Email::Clients::Imap::

```cpp
Logout(System::SharedPtr < IConnection > connection)
```

| Parameter | Description |
| --- | --- |
| connection | Connection to a server |

