TaskCreationOptions Enumeration

Task Parallel System.Threading

Specifies flags that control optional behavior for the creation and execution of tasks.

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

Syntax

Visual Basic (Declaration)
<SerializableAttribute> _
<FlagsAttribute> _
Public Enumeration TaskCreationOptions
C#
[SerializableAttribute]
[FlagsAttribute]
public enum TaskCreationOptions

Members

Member nameDescription
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, course-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.

See Also