VsTaskLibraryHelper::CreateAndStartTask Method (IVsTaskSchedulerService^, VsTaskRunContext, VsTaskBodyCallback^)
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, VsTaskBodyCallback^ action )
Parameters
- scheduler
-
Type:
Microsoft.VisualStudio.Shell.Interop::IVsTaskSchedulerService^
The scheduler service.
- context
-
Type:
Microsoft.VisualStudio.Shell::VsTaskRunContext
The context where the task will be executed.
- action
-
Type:
Microsoft.VisualStudio.Shell::VsTaskBodyCallback^
A CreateAndStartTask to execute as the task body.
Return Value
Type: Microsoft.VisualStudio.Shell.Interop::IVsTask^
Show: