
## CreateAttachment {#createattachment}

Creates new attachment for specified item

**Returns:** Returns created attachment

```cpp
CreateAttachment(System::String parentId, System::SharedPtr < Mapi::MapiAttachment > attachment)
```

| Parameter | Description |
| --- | --- |
| parentId | Item id |
| attachment | Attachment to create |

