---
title: "Aspose::Email::Clients::Exchange::ExchangeAdvancedSyntaxQueryBuilder::get_Attachment method"
url: "https://reference.aspose.com/email/cpp/aspose.email.clients.exchange/exchangeadvancedsyntaxquerybuilder/get_attachment/"
product: "Aspose.Email for C++"
description: "Gets the field that allows to find items with a specified attachment name."
---


## get_Attachment {#get_attachment}

Gets the field that allows to find items with a specified attachment name.

**Returns:** System::SharedPtr < Tools::Search::StringComparisonField > Aspose::Email::Clients::Exchange::

```cpp
get_Attachment()
```

