---
title: "Aspose::Email::Clients::Google::Criteria::get_HasAttachment method"
url: "https://reference.aspose.com/email/cpp/aspose.email.clients.google/criteria/get_hasattachment/"
product: "Aspose.Email for C++"
description: "Whether the message has any attachment."
---


## get_HasAttachment {#get_hasattachment}

Whether the message has any attachment.

**Returns:** bool Aspose::Email::Clients::Google::

```cpp
get_HasAttachment()
```

