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
VsTaskRunContext

Fields

BackgroundThread 0

Runs the task on background thread pool with normal priority.

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 4

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

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 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 6

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

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