VsTaskLibraryHelper::CreateAndStartTask Method (IVsTaskSchedulerService^, VsTaskRunContext, IVsTaskBody^)

 

Creates a Visual Studio task that's executed with the specified context.

Namespace:   Microsoft.VisualStudio.Shell
Assembly:  Microsoft.VisualStudio.Shell.14.0 (in Microsoft.VisualStudio.Shell.14.0.dll)

public:
static IVsTask^ CreateAndStartTask(
	IVsTaskSchedulerService^ scheduler,
	VsTaskRunContext context,
	IVsTaskBody^ pTaskBody
)

Parameters

scheduler
Type: Microsoft.VisualStudio.Shell.Interop::IVsTaskSchedulerService^

[in] The task scheduler service.

context
Type: Microsoft.VisualStudio.Shell::VsTaskRunContext

[in] Where the task will be executed.

pTaskBody
Type: Microsoft.VisualStudio.Shell.Interop::IVsTaskBody^

[in] The action to be executed.

Return Value

Type: Microsoft.VisualStudio.Shell.Interop::IVsTask^

The task that was created.

Return to top
Show: