__VSTASKRUNCONTEXT Enumeration

 

Specifies how the task is run.

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

public enum __VSTASKRUNCONTEXT

Member nameDescription
VSTC_BACKGROUNDTHREAD

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

VSTC_BACKGROUNDTHREAD_LOW_IO_PRIORITY

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_CURRENTCONTEXT

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

VSTC_UITHREAD_BACKGROUND_PRIORITY

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

VSTC_UITHREAD_IDLE_PRIORITY

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

VSTC_UITHREAD_NORMAL_PRIORITY

Run the task on the UI thread with normal priority.

VSTC_UITHREAD_SEND

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

Return to top
Show: