System.Threading.Tasks.ParallelOptions.CancellationToken Property

Gets or sets the System.Threading.CancellationToken associated with this System.Threading.Tasks.ParallelOptions instance.

Syntax

public System.Threading.CancellationToken CancellationToken { get; set; }

Value

Documentation for this section has not yet been entered.

Remarks

Providing a System.Threading.CancellationToken to a System.Threading.Tasks.Parallel method enables the operation to be exited early. Code external to the operation may cancel the token, and if the operation observes the token being set, it may exit early by throwing an OperationCanceledException.

Requirements

Namespace: System.Threading.Tasks
Assembly: mscorlib (in mscorlib.dll)
Assembly Versions: 4.0.0.0