---
title: "Aspose::Email::Storage::Pst::PersonalStorage::ExtractAttachments method"
url: "https://reference.aspose.com/email/cpp/aspose.email.storage.pst/personalstorage/extractattachments/"
product: "Aspose.Email for C++"
description: "Extracts the attachments."
---


## ExtractAttachments (1 of 2) {#extractattachments_1}

Extracts the attachments.

**Returns:** The MapiAttachmentCollection that represents the collection of attachments.

```cpp
ExtractAttachments(System::SharedPtr < MessageInfo > messageInfo)
```

| Parameter | Description |
| --- | --- |
| messageInfo | The message information. |

---

## ExtractAttachments (2 of 2) {#extractattachments_2}

Extracts the attachments.

**Returns:** The MapiAttachmentCollection that represents the collection of attachments.

```cpp
ExtractAttachments(System::String entryId)
```

| Parameter | Description |
| --- | --- |
| entryId | The message entryId. |

