---
title: "Aspose::Email::Clients::Exchange::Dav::ExchangeClient::FetchAttachment method"
url: "https://reference.aspose.com/email/cpp/aspose.email.clients.exchange.dav/exchangeclient/fetchattachment/"
product: "Aspose.Email for C++"
description: "Fetches the attachment"
---


## FetchAttachment {#fetchattachment}

Fetches the attachment

**Returns:** Attachment that represents fetched attachment

```cpp
FetchAttachment(System::String attachmentUri)
```

| Parameter | Description |
| --- | --- |
| attachmentUri | The attachment uri. ( Attachment uri can be retrieved using ListMessages(folder, ExchangeListMessagesOptions.FetchAttachmentInformation ) method) |

