---
title: "Aspose::Email::Clients::Graph::IGraphClient::UpdateTask method"
url: "https://reference.aspose.com/email/cpp/aspose.email.clients.graph/igraphclient/updatetask/"
product: "Aspose.Email for C++"
description: "Updates Task"
---


## UpdateTask (1 of 2) {#updatetask_1}

Updates Task

**Returns:** Updated MapiTask

```cpp
UpdateTask(System::SharedPtr < Mapi::MapiTask > task)
```

| Parameter | Description |
| --- | --- |
| task | MapiTask to be updated |

---

## UpdateTask (2 of 2) {#updatetask_2}

Updates Task

**Returns:** Updated MapiTask

```cpp
UpdateTask(System::SharedPtr < Mapi::MapiTask > task, System::SharedPtr < UpdateSettings > updateSettings)
```

| Parameter | Description |
| --- | --- |
| task | MapiTask to be updated |
| updateSettings | Update settings |

