---
title: "Aspose::Email::Mapi::KnownPropertyList::HasAttachments method"
url: "https://reference.aspose.com/email/cpp/aspose.email.mapi/knownpropertylist/hasattachments/"
product: "Aspose.Email for C++"
description: "Indicates whether the Message object contains at least one attachment."
---


## HasAttachments {#hasattachments}

Indicates whether the Message object contains at least one attachment. Area: Message Attachment Properties Property set Canonical name: PidTagHasAttachments Alternate names: PR_HASATTACH, ptagHasAttach, urn:schemas:httpmail:hasattachment

**Returns:** System::SharedPtr < PidTagPropertyDescriptor > Aspose::Email::Mapi::

```cpp
HasAttachments()
```

