## ValueTask::AsTask method


Converts this [ValueTask](../) to a shared pointer to [Task](../../task/).

```cpp
TaskPtr System::Threading::Tasks::ValueTask::AsTask() const
```


### ReturnValue

[TaskPtr](../../../system/taskptr/) A shared pointer to a [Task](../../task/) that represents this operation.

## See Also

* Typedef [TaskPtr](../../../system/taskptr/)
* Class [ValueTask](../)
* Namespace [System::Threading::Tasks](../../)
* Library [Aspose.PDF for C++](../../../)
