Windows apps
Collapse the table of content
Expand the table of content
Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

ParallelOptions Constructor ()

.NET Framework (current version)
 

Initializes a new instance of the ParallelOptions class.

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

public:
ParallelOptions()

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.

Universal Windows Platform
Available since 8
.NET Framework
Available since 4.0
Portable Class Library
Supported in: portable .NET platforms
Windows Phone
Available since 8.1
Return to top
Show:
© 2017 Microsoft