Partager via


VsTaskLibraryHelper.GetTaskScheduler(VsTaskRunContext) Method

Definition

Gets the TaskScheduler that executes tasks on the thread and with the priority specified by the specified VsTaskRunContext.

public:
 static System::Threading::Tasks::TaskScheduler ^ GetTaskScheduler(Microsoft::VisualStudio::Shell::VsTaskRunContext context);
public static System.Threading.Tasks.TaskScheduler GetTaskScheduler (Microsoft.VisualStudio.Shell.VsTaskRunContext context);
static member GetTaskScheduler : Microsoft.VisualStudio.Shell.VsTaskRunContext -> System.Threading.Tasks.TaskScheduler
Public Function GetTaskScheduler (context As VsTaskRunContext) As TaskScheduler

Parameters

context
VsTaskRunContext

Indicates the thread and priority that tasks should be scheduled on.

Returns

The requested TaskScheduler.

Applies to