Collapse the table of content
Expand the table of content
Expand Minimize

__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_BACKGROUNDTHREADRuns the task on the background thread pool with normal priority.
VSTC_BACKGROUNDTHREAD_LOW_IO_PRIORITYRuns 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_CURRENTCONTEXTRuns the task on the current context (that is, the UI thread or the background thread).
VSTC_UITHREAD_BACKGROUND_PRIORITYRuns the task on the UI thread using background priority (that is, below user input).
VSTC_UITHREAD_IDLE_PRIORITYRuns the task on the UI thread when Visual Studio is idle.
VSTC_UITHREAD_NORMAL_PRIORITYRun the task on the UI thread with normal priority.
VSTC_UITHREAD_SENDRun the task on the UI thread with the highest priority. This may cause reentrancy
Was this page helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2015 Microsoft