---
title: "Aspose::Email::Mapi::MapiNamedPropertyMappingStorage::AddNamedPropertyMapping method"
url: "https://reference.aspose.com/email/cpp/aspose.email.mapi/mapinamedpropertymappingstorage/addnamedpropertymapping/"
product: "Aspose.Email for C++"
description: "Adds the named property mapping for numeric named property."
---


## AddNamedPropertyMapping (1 of 2) {#addnamedpropertymapping_1}

Adds the named property mapping for numeric named property.

**Returns:** void Aspose::Email::Mapi::

```cpp
AddNamedPropertyMapping(System::SharedPtr < MapiProperty > property, int64_t nameId, System::Guid guid)
```

| Parameter | Description |
| --- | --- |
| property | The property to add mapping for. |
| nameId | The name id. |
| guid | The GUID identifying property set. |

---

## AddNamedPropertyMapping (2 of 2) {#addnamedpropertymapping_2}

Adds the named property mapping for string named property.

**Returns:** void Aspose::Email::Mapi::

```cpp
AddNamedPropertyMapping(System::SharedPtr < MapiProperty > property, System::String nameId, System::Guid guid)
```

| Parameter | Description |
| --- | --- |
| property | The property to add mapping for. |
| nameId | The name id. |
| guid | The GUID identifying property set. |

