---
title: "Aspose::Email::Mapi::MapiPropertyCollection::Add method"
url: "https://reference.aspose.com/email/cpp/aspose.email.mapi/mapipropertycollection/add/"
product: "Aspose.Email for C++"
description: "Adds a MapiProperty item with specified tag."
---


## Add (1 of 3) {#add_1}

Adds a MapiProperty item with specified tag.

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

```cpp
Add(const int64_t & key, const System::SharedPtr < MapiProperty > & value)
```

| Parameter | Description |
| --- | --- |
| key | The property tag. |
| value | The property value. |

---

## Add (2 of 3) {#add_2}

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

```cpp
Add(const System::Collections::Generic::KeyValuePair< int64_t, System::SharedPtr < MapiProperty >> & item)
```

| Parameter | Description |
| --- | --- |
| item |  |

---

## Add (3 of 3) {#add_3}

Adds a MapiProperty item with specified tag.

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

```cpp
Add(const System::SharedPtr < MapiProperty > & value)
```

| Parameter | Description |
| --- | --- |
| value | The property value. |

