
## set_ErrorCode {#set_errorcode}

Gets the error code that was returned by the service.

**Returns:** void Aspose::Email::Clients::Exchange::

```cpp
set_ErrorCode(AutodiscoverErrorCode value)
```

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

