VsTaskRunContext VsTaskRunContext VsTaskRunContext VsTaskRunContext VsTaskRunContext VsTaskRunContext Enum

Definition

Specifies how the task is run.

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 the background thread pool with normal priority.

BackgroundThreadLowIOPriority BackgroundThreadLowIOPriority BackgroundThreadLowIOPriority BackgroundThreadLowIOPriority BackgroundThreadLowIOPriority BackgroundThreadLowIOPriority 5

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 CurrentContext CurrentContext CurrentContext CurrentContext CurrentContext 4

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

UIThreadBackgroundPriority UIThreadBackgroundPriority UIThreadBackgroundPriority UIThreadBackgroundPriority UIThreadBackgroundPriority UIThreadBackgroundPriority 2

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

UIThreadIdlePriority UIThreadIdlePriority UIThreadIdlePriority UIThreadIdlePriority UIThreadIdlePriority UIThreadIdlePriority 3

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

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

Applies to