Edit

Share via


ParallelOptions Constructor

Definition

Initializes a new instance of the ParallelOptions class.

public:
 ParallelOptions();
public ParallelOptions ();
Public Sub New ()

Remarks

This constructor initializes the instance with default values. MaxDegreeOfParallelism is initialized to -1, signifying that there is no upper bound set on how much parallelism should be employed. CancellationToken is initialized to a non-cancelable token, and TaskScheduler is initialized to the default scheduler (TaskScheduler.Default).

All of these defaults may be overwritten using the property set accessors on the instance.

Applies to