
## GetByUid {#getbyuid}

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

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

```cpp
GetByUid(int32_t uid)
```

| Parameter | Description |
| --- | --- |
| uid | TaskEntity Uid. |

