VsTaskRunContext Enumeration

 

Specifies how the task is run.

Namespace:   Microsoft.VisualStudio.Shell
Assembly:  Microsoft.VisualStudio.Shell.14.0 (in Microsoft.VisualStudio.Shell.14.0.dll)

public enum VsTaskRunContext

Member nameDescription
BackgroundThread

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

BackgroundThreadLowIOPriority

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.

CurrentContext

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

UIThreadBackgroundPriority

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

UIThreadIdlePriority

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

UIThreadNormalPriority

Runs the task on UI thread using Dispatcher with Normal priority.

UIThreadSend

Runs the task on UI thread using RPC callback to be executed as soon as possible. Note: This context may cause reentrancy.

IsUIThreadContext()

Determines whether the specified context represents UI thread work.(Defined by VsTaskLibraryHelper.)

Return to top
Show: