## IGmailClientAsync.GetAllGroupsAsync method

Asynchronously retrieves all contact groups for the user.

```csharp
public Task<ContactGroupCollection> GetAllGroupsAsync(CancellationToken cancellationToken = default)
```

| Parameter | Type | Description |
| --- | --- | --- |
| cancellationToken | CancellationToken | A cancellation token. |

### Return Value

A task that represents the asynchronous operation. The task result contains the [`ContactGroupCollection`](../../contactgroupcollection/).

### See Also

* class [ContactGroupCollection](../../contactgroupcollection/)
* interface [IGmailClientAsync](../)
* namespace [Aspose.Email.Clients.Google](../../igmailclientasync/)
* assembly [Aspose.Email](../../../)


