
## SetItem {#setitem}

Replaces the element at the specified index.

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

```cpp
SetItem(int32_t index, const System::SharedPtr < LinkedResource > & item)
```

| Parameter | Description |
| --- | --- |
| index | The zero-based index of the element to replace. |
| item | The new value for the element at the specified index. The value can be null for reference types. |

