Sdílet prostřednictvím


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

Name Value Description
BackgroundThread 0

Runs the task on background thread pool 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.

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.

CurrentContext 4

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

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.

UIThreadNormalPriority 6

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

Applies to