VsTaskLibraryHelper::CreateAndStartTaskEx Method (IVsTaskSchedulerService^, VsTaskRunContext, VsTaskCreationOptions, IVsTaskBody^, Object^)

 

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^ CreateAndStartTaskEx(
	IVsTaskSchedulerService^ scheduler,
	VsTaskRunContext context,
	VsTaskCreationOptions options,
	IVsTaskBody^ pTaskBody,
	Object^ pAsyncState
)

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.

options
Type: Microsoft.VisualStudio.Shell::VsTaskCreationOptions

[in] Flags that control optional behavior for the creation and execution of tasks.

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

[in] The action to be executed.

pAsyncState
Type: System::Object^

The asynchronous state for the task.

Return Value

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

The task that was created.

Return to top
Show: