Share via


VsTaskCreationOptions Enumeration

Specifies the options for creating a task.

This enumeration has a FlagsAttribute attribute that allows a bitwise combination of its member values.

Namespace:  Microsoft.VisualStudio.Shell
Assembly:  Microsoft.VisualStudio.Shell.12.0 (in Microsoft.VisualStudio.Shell.12.0.dll)

Syntax

'Declaration
<FlagsAttribute> _
Public Enumeration VsTaskCreationOptions
[FlagsAttribute]
public enum VsTaskCreationOptions
[FlagsAttribute]
public enum class VsTaskCreationOptions
[<FlagsAttribute>]
type VsTaskCreationOptions
public enum VsTaskCreationOptions

Members

Member name Description
AttachedToParent Creates the task as attached to the currently-running task. The parent task is not marked as completed until this child task is completed as well.
CancelWithParent
DenyChildAttach A child task cannot be attached to the task.
LongRunning The task will be a long-running, coarse-grained operation. It provides a hint to the TaskScheduler that oversubscription may be warranted. For background tasks, this member causes the task to run its own thread instead of the thread pool.
None The default behavior should be used.
NotCancelable The task cannot be canceled. Users will get an exception if they try to cancel the task.
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.

See Also

Reference

Microsoft.VisualStudio.Shell Namespace