Specifies flags that control optional behavior for the creation and execution of tasks.
This enumeration has a FlagsAttribute attribute that allows a bitwise combination of its member values.
Assemblies: mscorlib (in mscorlib.dll)
System.Threading.Tasks (in System.Threading.Tasks.dll)
|Specifies that a task is attached to a parent in the task hierarchy. For more information, see Attached and Detached Child Tasks.|
|Specifies that an InvalidOperationException will be thrown if an attempt is made to attach a child task to the created task.|
|Prevents the ambient scheduler from being seen as the current scheduler in the created task. This means that operations like StartNew or ContinueWith that are performed in the created task will see Default as the current scheduler.|
|Specifies that a task will be a long-running, coarse-grained operation involving fewer, larger components than fine-grained systems. It provides a hint to the TaskScheduler that oversubscription may be warranted. Oversubscription lets you create more threads than the available number of hardware threads.|
|Specifies that the default behavior should be used.|
|A hint to a TaskScheduler to schedule a task in as fair a manner as possible, meaning that tasks scheduled sooner will be more likely to be run sooner, and tasks scheduled later will be more likely to be run later.|
|Forces continuations added to the current task to be executed asynchronously.|
.NET FrameworkSupported in: 4.5.3, 4
.NET Framework Client ProfileSupported in: 4
Portable Class LibrarySupported in: Portable Class Library
.NET for Windows Store appsSupported in: Windows 8
Supported in: Windows Phone 8.1
Supported in: Windows Phone Silverlight 8.1
Supported in: Windows Phone Silverlight 8
Windows Phone 8.1, Windows Phone 8, Windows 8.1, Windows Server 2012 R2, Windows 8, Windows Server 2012, Windows 7, Windows Vista SP2, Windows Server 2008 (Server Core Role not supported), Windows Server 2008 R2 (Server Core Role supported with SP1 or later; Itanium not supported)
The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.