0 out of 1 rated this helpful - Rate this topic

TaskCreationOptions Enumeration

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.

Namespace:  System.Threading.Tasks
Assembly:  mscorlib (in mscorlib.dll)
[SerializableAttribute]
[FlagsAttribute]
public enum TaskCreationOptions
Member name Description
None Specifies that the default behavior should be used.
PreferFairness 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.
LongRunning Specifies that a task will be a long-running, coarse-grained operation. It provides a hint to the TaskScheduler that oversubscription may be warranted.
AttachedToParent Specifies that a task is attached to a parent in the task hierarchy.

.NET Framework

Supported in: 4

.NET Framework Client Profile

Supported in: 4

Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.
Did you find this helpful?
(1500 characters remaining)
Community Content Add
Annotations FAQ
AttachedToParent

For more details of meaning of AttachedToParent see http://msdn.microsoft.com/en-us/library/dd997417.aspx

(Nested Tasks and Child Tasks)