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


## idx_get (1 of 2) {#idx_get_1}

Gets the value associated with the specified key.

**Returns:** The value associated with the specified key.

```cpp
idx_get(const int64_t & tag)
```

| Parameter | Description |
| --- | --- |
| tag | The tag key whose value to get or set. |

---

## idx_get (2 of 2) {#idx_get_2}

Gets the value associated with the specified key.

**Returns:** The value associated with the specified key.

```cpp
idx_get(const System::SharedPtr < PropertyDescriptor > & pd)
```

| Parameter | Description |
| --- | --- |
| pd | The PropertyDescriptor key whose value to get or set. |

