---
title: "Aspose::Email::Mapi::MapiPropertyCollection::idx_set method"
url: "https://reference.aspose.com/email/cpp/aspose.email.mapi/mapipropertycollection/idx_set/"
product: "Aspose.Email for C++"
description: "Sets the value associated with the specified key."
---


## idx_set (1 of 2) {#idx_set_1}

Sets the value associated with the specified key.

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

```cpp
idx_set(const int64_t & tag, System::SharedPtr < MapiProperty > value)
```

| Parameter | Description |
| --- | --- |
| tag | The tag key whose value to get or set. |
| value | The value associated with the specified key. |

---

## idx_set (2 of 2) {#idx_set_2}

Sets the value associated with the specified key.

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

```cpp
idx_set(const System::SharedPtr < PropertyDescriptor > & pd, System::SharedPtr < MapiProperty > value)
```

| Parameter | Description |
| --- | --- |
| pd | The PropertyDescriptor key whose value to get or set. |
| value | The value associated with the specified key. |

