## ParallelOptions::set_CancellationToken method


Sets the [CancellationToken](../../../system.threading/cancellationtoken/) associated with this [ParallelOptions](../) instance.

```cpp
void System::Threading::Tasks::ParallelOptions::set_CancellationToken(const CancellationToken &value)
```


| Parameter | Type | Description |
| --- | --- | --- |
| value | const CancellationToken\& | The [CancellationToken](../../../system.threading/cancellationtoken/) to use for cancellation. |

## See Also

* Class [CancellationToken](../../../system.threading/cancellationtoken/)
* Class [ParallelOptions](../)
* Namespace [System::Threading::Tasks](../../)
* Library [Aspose.PDF for C++](../../../)
