Partager via


VsTaskLibraryHelper.CreateAndStartTask Method

Definition

Overloads

CreateAndStartTask(IVsTaskSchedulerService, VsTaskRunContext, IVsTaskBody)

Creates a Visual Studio task that will be executed with the specified context.

CreateAndStartTask(IVsTaskSchedulerService, VsTaskRunContext, VsTaskBodyCallback)

Creates a Visual Studio task that will be executed with the specified context.

CreateAndStartTask(IVsTaskSchedulerService, VsTaskRunContext, Action)

Creates a Visual Studio task that will be executed with the specified context.

CreateAndStartTask(IVsTaskSchedulerService, VsTaskRunContext, IVsTaskBody)

Creates a Visual Studio task that will be executed with the specified context.

public:
 static Microsoft::VisualStudio::Shell::Interop::IVsTask ^ CreateAndStartTask(Microsoft::VisualStudio::Shell::Interop::IVsTaskSchedulerService ^ scheduler, Microsoft::VisualStudio::Shell::VsTaskRunContext context, Microsoft::VisualStudio::Shell::Interop::IVsTaskBody ^ pTaskBody);
public:
 static Microsoft::VisualStudio::Shell::Interop::IVsTask ^ CreateAndStartTask(Microsoft::VisualStudio::Shell::Interop::IVsTaskSchedulerService ^ scheduler, Microsoft::VisualStudio::Shell::VsTaskRunContext context, Microsoft::VisualStudio::Shell::Interop::IVsTaskBody ^ pTaskBody);
 static Microsoft::VisualStudio::Shell::Interop::IVsTask CreateAndStartTask(Microsoft::VisualStudio::Shell::Interop::IVsTaskSchedulerService const & scheduler, Microsoft::VisualStudio::Shell::VsTaskRunContext context, Microsoft::VisualStudio::Shell::Interop::IVsTaskBody const & pTaskBody);
public static Microsoft.VisualStudio.Shell.Interop.IVsTask CreateAndStartTask (Microsoft.VisualStudio.Shell.Interop.IVsTaskSchedulerService scheduler, Microsoft.VisualStudio.Shell.VsTaskRunContext context, Microsoft.VisualStudio.Shell.Interop.IVsTaskBody pTaskBody);
static member CreateAndStartTask : Microsoft.VisualStudio.Shell.Interop.IVsTaskSchedulerService * Microsoft.VisualStudio.Shell.VsTaskRunContext * Microsoft.VisualStudio.Shell.Interop.IVsTaskBody -> Microsoft.VisualStudio.Shell.Interop.IVsTask
Public Function CreateAndStartTask (scheduler As IVsTaskSchedulerService, context As VsTaskRunContext, pTaskBody As IVsTaskBody) As IVsTask

Parameters

scheduler
IVsTaskSchedulerService

The scheduler that will execute the task.

context
VsTaskRunContext

Where the task will be executed.

pTaskBody
IVsTaskBody

Action to be executed.

Returns

The task that was created.

Applies to

CreateAndStartTask(IVsTaskSchedulerService, VsTaskRunContext, VsTaskBodyCallback)

Creates a Visual Studio task that will be executed with the specified context.

public:
 static Microsoft::VisualStudio::Shell::Interop::IVsTask ^ CreateAndStartTask(Microsoft::VisualStudio::Shell::Interop::IVsTaskSchedulerService ^ scheduler, Microsoft::VisualStudio::Shell::VsTaskRunContext context, Microsoft::VisualStudio::Shell::VsTaskBodyCallback ^ action);
public:
 static Microsoft::VisualStudio::Shell::Interop::IVsTask ^ CreateAndStartTask(Microsoft::VisualStudio::Shell::Interop::IVsTaskSchedulerService ^ scheduler, Microsoft::VisualStudio::Shell::VsTaskRunContext context, Microsoft::VisualStudio::Shell::VsTaskBodyCallback ^ action);
public static Microsoft.VisualStudio.Shell.Interop.IVsTask CreateAndStartTask (Microsoft.VisualStudio.Shell.Interop.IVsTaskSchedulerService scheduler, Microsoft.VisualStudio.Shell.VsTaskRunContext context, Microsoft.VisualStudio.Shell.VsTaskBodyCallback action);
static member CreateAndStartTask : Microsoft.VisualStudio.Shell.Interop.IVsTaskSchedulerService * Microsoft.VisualStudio.Shell.VsTaskRunContext * Microsoft.VisualStudio.Shell.VsTaskBodyCallback -> Microsoft.VisualStudio.Shell.Interop.IVsTask
Public Function CreateAndStartTask (scheduler As IVsTaskSchedulerService, context As VsTaskRunContext, action As VsTaskBodyCallback) As IVsTask

Parameters

scheduler
IVsTaskSchedulerService

The scheduler that will execute the task.

context
VsTaskRunContext

Where the task will be executed.

action
VsTaskBodyCallback

VsTaskBodyCallback action to execute as the task body.

Returns

Applies to

CreateAndStartTask(IVsTaskSchedulerService, VsTaskRunContext, Action)

Creates a Visual Studio task that will be executed with the specified context.

public:
 static Microsoft::VisualStudio::Shell::Interop::IVsTask ^ CreateAndStartTask(Microsoft::VisualStudio::Shell::Interop::IVsTaskSchedulerService ^ scheduler, Microsoft::VisualStudio::Shell::VsTaskRunContext context, Action ^ action);
public static Microsoft.VisualStudio.Shell.Interop.IVsTask CreateAndStartTask (Microsoft.VisualStudio.Shell.Interop.IVsTaskSchedulerService scheduler, Microsoft.VisualStudio.Shell.VsTaskRunContext context, Action action);
static member CreateAndStartTask : Microsoft.VisualStudio.Shell.Interop.IVsTaskSchedulerService * Microsoft.VisualStudio.Shell.VsTaskRunContext * Action -> Microsoft.VisualStudio.Shell.Interop.IVsTask
Public Function CreateAndStartTask (scheduler As IVsTaskSchedulerService, context As VsTaskRunContext, action As Action) As IVsTask

Parameters

scheduler
IVsTaskSchedulerService

The scheduler that will execute the task.

context
VsTaskRunContext

Where the task will be executed.

action
Action

Anonymous method to execute as the task body.

Returns

Applies to