## IGraphClientAsync.FetchTaskAsync method

Asynchronously fetches a task by its ID.

```csharp
public Task<MapiTask> FetchTaskAsync(string id, CancellationToken cancellationToken = default)
```

| Parameter | Type | Description |
| --- | --- | --- |
| id | String | The ID of the task 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 [`MapiTask`](../../../aspose.email.mapi/mapitask/).

### See Also

* class [MapiTask](../../../aspose.email.mapi/mapitask/)
* interface [IGraphClientAsync](../)
* namespace [Aspose.Email.Clients.Graph](../../igraphclientasync/)
* assembly [Aspose.Email](../../../)


