Freigeben über


__VSTASKRUNCONTEXT Enum

Definition

Specifies how the task is run.

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

Fields

Name Value Description
VSTC_BACKGROUNDTHREAD 0

Runs the task on the background thread pool with normal priority.

VSTC_UITHREAD_SEND 1

Run the task on the UI thread with the highest priority. This may cause reentrancy

VSTC_UITHREAD_BACKGROUND_PRIORITY 2

Runs the task on the UI thread using background priority (that is, below user input).

VSTC_UITHREAD_IDLE_PRIORITY 3

Runs the task on the UI thread when Visual Studio is idle.

VSTC_CURRENTCONTEXT 4

Runs the task on the current context (that is, the UI thread or the background thread).

VSTC_BACKGROUNDTHREAD_LOW_IO_PRIORITY 5

Runs the task on the background thread pool and sets the background mode on the thread while the task is running. This is useful for I/O-heavy background tasks that are not time critical.

VSTC_UITHREAD_NORMAL_PRIORITY 6

Run the task on the UI thread with normal priority.

Applies to