---
title: "Aspose::Email::Mapi::MapiMessageItemBase::AddNamedPropertyToEmbeddedMsg method"
url: "https://reference.aspose.com/email/cpp/aspose.email.mapi/mapimessageitembase/addnamedpropertytoembeddedmsg/"
product: "Aspose.Email for C++"
description: "Adds the named property to embedded message."
---


## AddNamedPropertyToEmbeddedMsg {#addnamedpropertytoembeddedmsg}

Adds the named property to embedded message.

**Returns:** int64_t Aspose::Email::Mapi::

```cpp
AddNamedPropertyToEmbeddedMsg(System::SharedPtr < MapiMessage > msg, MapiPropertyType type, System::ArrayPtr< uint8_t > data, System::SharedPtr < System::Object > nameId, System::Guid guid)
```

| Parameter | Description |
| --- | --- |
| msg | The embedded message. |
| type | The property type. |
| data | The property data. |
| nameId | The name id. |
| guid | The property GUID. |

