---
title: "Aspose::Email::Clients::Google::ContactGroupCollection::SetItem method"
url: "https://reference.aspose.com/email/cpp/aspose.email.clients.google/contactgroupcollection/setitem/"
product: "Aspose.Email for C++"
description: "Replaces the element at the specified index."
---


## SetItem {#setitem}

Replaces the element at the specified index.

**Returns:** void Aspose::Email::Clients::Google::

```cpp
SetItem(int32_t index, const System::SharedPtr < GoogleContactGroup > & 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. |

