|
| .NET Framework Class Library |
| ParallelOptions Constructor |
| ParallelOptions Class See Also Send Feedback |
Initializes a new instance of the ParallelOptions class.
Namespace:
System.Threading.Tasks
Assembly:
System.Threading (in System.Threading.dll)
Syntax
| Visual Basic (Declaration) |
|---|
Public Sub New |
| C# |
|---|
public ParallelOptions() |
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.