Expand Minimize

__VSTASKCREATIONOPTIONS Enumeration

Specifies the options for creating a task.

Namespace:  Microsoft.VisualStudio.Shell.Interop
Assembly:  Microsoft.VisualStudio.Shell.Interop.11.0 (in Microsoft.VisualStudio.Shell.Interop.11.0.dll)

public enum __VSTASKCREATIONOPTIONS

Member nameDescription
VSTCRO_AttachedToParentCreates 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.
VSTCRO_DenyChildAttachA child task cannot be attached to the task.
VSTCRO_LongRunningThe task will be a long-running, coarse-grained operation. It provides a hint to the task library that oversubscription may be warranted. For background tasks, this member causes the task to run its own thread instead of the thread pool.
VSTCRO_NoneThe default behavior should be used.
VSTCRO_NotCancelableThe task cannot be canceled. Users will get an exception if they try to cancel the task.
VSTCRO_PreferFairnessA hint to the task library 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.
Was this page helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2014 Microsoft