
## CreateMapiAttachment {#createmapiattachment}

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

```cpp
CreateMapiAttachment(System::String name, System::SharedPtr < MapiMessage > msg, int32_t attachNum)
```

| Parameter | Description |
| --- | --- |
| name |  |
| msg |  |
| attachNum |  |

