VsTaskRunContext VsTaskRunContext VsTaskRunContext VsTaskRunContext VsTaskRunContext VsTaskRunContext Enum

Definition

Managed definition of __VSTASKRUNCONTEXT

public enum class VsTaskRunContext
public enum class VsTaskRunContext
enum VsTaskRunContext
public enum VsTaskRunContext
type VsTaskRunContext = 
Public Enum VsTaskRunContext
Inheritance
VsTaskRunContextVsTaskRunContextVsTaskRunContextVsTaskRunContextVsTaskRunContextVsTaskRunContext

Fields

BackgroundThread BackgroundThread BackgroundThread BackgroundThread BackgroundThread BackgroundThread 0

Runs the task on background thread pool with normal priority

BackgroundThreadLowIOPriority BackgroundThreadLowIOPriority BackgroundThreadLowIOPriority BackgroundThreadLowIOPriority BackgroundThreadLowIOPriority BackgroundThreadLowIOPriority 5

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

CurrentContext CurrentContext CurrentContext CurrentContext CurrentContext CurrentContext 4

Runs the task on the current context (ie UI thread or background thread)

UIThreadBackgroundPriority UIThreadBackgroundPriority UIThreadBackgroundPriority UIThreadBackgroundPriority UIThreadBackgroundPriority UIThreadBackgroundPriority 2

Runs the task on UI thread using background priority (i.e. below user input). Tasks are scheduled even while modal dialogs are open. Tasks are scheduled to occur when no user input is pending, plus a short delay. Appropriate for short tasks or slightly longer tasks.

UIThreadIdlePriority UIThreadIdlePriority UIThreadIdlePriority UIThreadIdlePriority UIThreadIdlePriority UIThreadIdlePriority 3

Runs the task on UI thread when Visual Studio is idle. Tasks are not scheduled till most modal dialogs have been dismissed. Appropriate for very short running tasks.

UIThreadNormalPriority UIThreadNormalPriority UIThreadNormalPriority UIThreadNormalPriority UIThreadNormalPriority UIThreadNormalPriority 6

Runs the task on UI thread using Dispatcher with Normal priority

UIThreadSend UIThreadSend UIThreadSend UIThreadSend UIThreadSend UIThreadSend 1

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

Applies to