ParallelOptions Constructor
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
.NET