---
title: "IGraphClientAsync.FetchRuleAsync"
url: "https://reference.aspose.com/email/net/aspose.email.clients.graph/igraphclientasync/fetchruleasync/"
product: "Aspose.Email for .NET API Reference"
description: "IGraphClientAsync method. Asynchronously fetches an inbox rule by its ID"
---

## IGraphClientAsync.FetchRuleAsync method

Asynchronously fetches an inbox rule by its ID.

```csharp
public Task<InboxRule> FetchRuleAsync(string itemId, CancellationToken cancellationToken = default)
```

| Parameter | Type | Description |
| --- | --- | --- |
| itemId | String | The ID of the rule to fetch. |
| cancellationToken | CancellationToken | A cancellation token to observe while waiting for the task to complete. |

### Return Value

A task that represents the asynchronous operation. The task result contains the fetched [`InboxRule`](../../../aspose.email.clients.exchange/inboxrule/).

### See Also

* class [InboxRule](../../../aspose.email.clients.exchange/inboxrule/)
* interface [IGraphClientAsync](../)
* namespace [Aspose.Email.Clients.Graph](../../igraphclientasync/)
* assembly [Aspose.Email](../../../)


