
## set_RestoreConnection {#set_restoreconnection}

Sets value which defines if connection has to be restored in case if server closes connection forcibly This option has to be used together with NumberOfAttemptsToRrepeat option.

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

```cpp
set_RestoreConnection(bool value)
```

| Parameter | Description |
| --- | --- |
| value |  |

