## ParallelOptions::set_TaskScheduler method


Sets the [TaskScheduler](../../taskscheduler/) associated with this [ParallelOptions](../) instance.

```cpp
void System::Threading::Tasks::ParallelOptions::set_TaskScheduler(const SharedPtr<TaskScheduler> &value)
```


| Parameter | Type | Description |
| --- | --- | --- |
| value | const SharedPtr\<TaskScheduler\>\& | The [TaskScheduler](../../taskscheduler/) to use for scheduling tasks. |

## See Also

* Typedef [SharedPtr](../../../system/sharedptr/)
* Class [TaskScheduler](../../taskscheduler/)
* Class [ParallelOptions](../)
* Namespace [System::Threading::Tasks](../../)
* Library [Aspose.PDF for C++](../../../)
