---
title: "Aspose::Email::PersonalInfo::AssociatedPersonsList::idx_set method"
url: "https://reference.aspose.com/email/cpp/aspose.email.personalinfo/associatedpersonslist/idx_set/"
product: "Aspose.Email for C++"
description: "Sets the element at the specified index."
---


## idx_set {#idx_set}

Sets the element at the specified index.

**Returns:** void Aspose::Email::PersonalInfo::

```cpp
idx_set(int32_t index, System::SharedPtr < AssociatedPerson > value)
```

| Parameter | Description |
| --- | --- |
| index | The zero-based index of the element to get or set. |
| value | The element at the specified index. |

