__VSTASKCREATIONOPTIONS Enum

Definition

Specifies the options for creating a task.

public enum class __VSTASKCREATIONOPTIONS
public enum class __VSTASKCREATIONOPTIONS
enum __VSTASKCREATIONOPTIONS
public enum __VSTASKCREATIONOPTIONS
type __VSTASKCREATIONOPTIONS = 
Public Enum __VSTASKCREATIONOPTIONS
Inheritance
__VSTASKCREATIONOPTIONS

Fields

Name Value Description
VSTCRO_NotCancelable -2147483648

The task cannot be canceled. Users will get an exception if they try to cancel the task.

VSTCRO_None 0

The default behavior should be used.

VSTCRO_PreferFairness 1

A 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.

VSTCRO_LongRunning 2

The 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_AttachedToParent 4

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.

VSTCRO_DenyChildAttach 8

A child task cannot be attached to the task.

Applies to