## ParallelOptions class


Stores options that configure the operation of methods on the [Parallel](../parallel/) class.

```cpp
class ParallelOptions : public System::Object
```

## Methods

| Method | Description |
| --- | --- |
| [get_CancellationToken](./get_cancellationtoken/)() | Gets the [CancellationToken](../../system.threading/cancellationtoken/) associated with this [ParallelOptions](./) instance. |
| [get_MaxDegreeOfParallelism](./get_maxdegreeofparallelism/)() | Gets the maximum degree of parallelism enabled by this [ParallelOptions](./) instance. |
| [get_TaskScheduler](./get_taskscheduler/)() | Gets the [TaskScheduler](../taskscheduler/) associated with this [ParallelOptions](./) instance. |
| [ParallelOptions](./paralleloptions/)() | Constructs a [ParallelOptions](./) instance with default values. |
| [set_CancellationToken](./set_cancellationtoken/)(const CancellationToken\&) | Sets the [CancellationToken](../../system.threading/cancellationtoken/) associated with this [ParallelOptions](./) instance. |
| [set_MaxDegreeOfParallelism](./set_maxdegreeofparallelism/)(int32_t) | Sets the maximum degree of parallelism enabled by this [ParallelOptions](./) instance. |
| [set_TaskScheduler](./set_taskscheduler/)(const SharedPtr\<TaskScheduler\>\&) | Sets the [TaskScheduler](../taskscheduler/) associated with this [ParallelOptions](./) instance. |
## See Also

* Class [Object](../../system/object/)
* Namespace [System::Threading::Tasks](../)
* Library [Aspose.PDF for C++](../../)
