Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Specifies how the task is run.
Namespace: Microsoft.VisualStudio.Shell
Assembly: Microsoft.VisualStudio.Shell.12.0 (in Microsoft.VisualStudio.Shell.12.0.dll)
Syntax
'Declaration
Public Enumeration VsTaskRunContext
public enum VsTaskRunContext
public enum class VsTaskRunContext
type VsTaskRunContext
public enum VsTaskRunContext
Members
Member name | Description | |
---|---|---|
BackgroundThread | Runs the task on the background thread pool with normal priority. | |
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. | |
CurrentContext | Runs the task on the current context (that is, the UI thread or the background thread). | |
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. | |
UIThreadNormalPriority | ||
UIThreadSend | ||
IsUIThreadContext | Determines whether the specified context represents UI thread work. |