
## ConvertToMapiAttachment {#converttomapiattachment}

Reimplemented from Aspose::Email::Attachment .

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

```cpp
ConvertToMapiAttachment(Mapi::OutlookMessageFormat format, int32_t codePage, int32_t count, bool preserveDates)
```

| Parameter | Description |
| --- | --- |
| format |  |
| codePage |  |
| count |  |
| preserveDates |  |

