VsTaskLibraryHelper::CreateAndStartTask Method (IVsTaskSchedulerService^, VsTaskRunContext, Action^)
Visual Studio 2015
Creates a Visual Studio task that will be executed in the specified context.
Assembly: Microsoft.VisualStudio.Shell.14.0 (in Microsoft.VisualStudio.Shell.14.0.dll)
public: static IVsTask^ CreateAndStartTask( IVsTaskSchedulerService^ scheduler, VsTaskRunContext context, Action^ action )
Parameters
- scheduler
-
Type:
Microsoft.VisualStudio.Shell.Interop::IVsTaskSchedulerService^
The task scheduler.
- context
-
Type:
Microsoft.VisualStudio.Shell::VsTaskRunContext
The context where the task will be executed.
- action
-
Type:
System::Action^
An anonymous method to execute as the task body.
Return Value
Type: Microsoft.VisualStudio.Shell.Interop::IVsTask^
Show: