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


## set_HasAttachment {#set_hasattachment}

Whether the message has any attachment.

**Returns:** void Aspose::Email::Clients::Google::

```cpp
set_HasAttachment(bool value)
```

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

