
## GetById {#getbyid}

Returns a task with the specified Id whose ancestor is parent task of this collection .

**Returns:** returns the instance of Task class with the specified id whose ancestor is parent task of this collection.

```cpp
GetById(int32_t id)
```

| Parameter | Description |
| --- | --- |
| id | TaskEntity Id |

