---
title: "IGmailClientAsync.GetSettingsAsync"
url: "https://reference.aspose.com/email/net/aspose.email.clients.google/igmailclientasync/getsettingsasync/"
product: "Aspose.Email for .NET API Reference"
description: "IGmailClientAsync method. Asynchronously retrieves all settings for the user"
---

## IGmailClientAsync.GetSettingsAsync method

Asynchronously retrieves all settings for the user.

```csharp
public Task<Dictionary<string, string>> GetSettingsAsync(
    CancellationToken cancellationToken = default)
```

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

### Return Value

A task that represents the asynchronous operation. The task result contains a dictionary of settings.

### See Also

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


