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

 

Creates a Visual Studio task that will be executed in 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,
	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 to top
Show: