Compartir a través de


VsTaskRunContext Enumeration

Specifies how the task is run.

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

Syntax

'Declaración
Public Enumeration VsTaskRunContext
public enum VsTaskRunContext

Members

Member name Description
BackgroundThread Runs the task on the background thread pool with normal priority.
UIThreadSend
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.
CurrentContext Runs the task on the current context (that is, the UI thread or the background thread).
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.
UIThreadNormalPriority

See Also

Reference

Microsoft.VisualStudio.Shell Namespace