---
title: "IGmailClientAsync.GetSettingAsync"
url: "https://reference.aspose.com/email/net/aspose.email.clients.google/igmailclientasync/getsettingasync/"
product: "Aspose.Email for .NET API Reference"
description: "IGmailClientAsync method. Asynchronously retrieves a specific setting by name"
---

## IGmailClientAsync.GetSettingAsync method

Asynchronously retrieves a specific setting by name.

```csharp
public Task<string> GetSettingAsync(string setting, CancellationToken cancellationToken = default)
```

| Parameter | Type | Description |
| --- | --- | --- |
| setting | String | The name of the setting. |
| cancellationToken | CancellationToken | A cancellation token. |

### Return Value

A task that represents the asynchronous operation. The task result contains the setting value.

### See Also

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


