VsTaskLibraryHelper::CreateTask Method (IVsTaskSchedulerService^, VsTaskRunContext, IVsTaskBody^)
Visual Studio 2015
Creates a task that's run on the given context.
Assembly: Microsoft.VisualStudio.Shell.14.0 (in Microsoft.VisualStudio.Shell.14.0.dll)
public: [ExtensionAttribute] static IVsTask^ CreateTask( IVsTaskSchedulerService^ service, VsTaskRunContext context, IVsTaskBody^ taskBody )
Parameters
- service
-
Type:
Microsoft.VisualStudio.Shell.Interop::IVsTaskSchedulerService^
[in] The task scheduler service to use to create the task.
- context
-
Type:
Microsoft.VisualStudio.Shell::VsTaskRunContext
[in] Where to run this task.
- taskBody
-
Type:
Microsoft.VisualStudio.Shell.Interop::IVsTaskBody^
[in] The action to be executed.
Return Value
Type: Microsoft.VisualStudio.Shell.Interop::IVsTask^The task scheduler service that's creating the task to run.
Show: