## Task::get_AsyncState method


Gets the user-defined state object associated with the task.

```cpp
const SharedPtr<Object> & System::Threading::Tasks::Task::get_AsyncState() const
```


### ReturnValue

[SharedPtr<Object>](../../../system/sharedptr/) The state object provided during construction

## See Also

* Typedef [SharedPtr](../../../system/sharedptr/)
* Class [Object](../../../system/object/)
* Class [Task](../)
* Namespace [System::Threading::Tasks](../../)
* Library [Aspose.PDF for C++](../../../)
