---
title: "Aspose::Email::Clients::Exchange::AutodiscoverResponse::get_ErrorMessage method"
url: "https://reference.aspose.com/email/cpp/aspose.email.clients.exchange/autodiscoverresponse/get_errormessage/"
product: "Aspose.Email for C++"
description: "Gets the error message that was returned by the service."
---


## get_ErrorMessage {#get_errormessage}

Gets the error message that was returned by the service.

**Returns:** System::String Aspose::Email::Clients::Exchange::

```cpp
get_ErrorMessage()
```

