Share via


VsTaskLibraryHelper.CreateAndStartTask Method

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

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

Syntax

'Declaration
Public Shared Function CreateAndStartTask ( _
    scheduler As IVsTaskSchedulerService, _
    context As VsTaskRunContext, _
    pTaskBody As IVsTaskBody _
) As IVsTask
public static IVsTask CreateAndStartTask(
    IVsTaskSchedulerService scheduler,
    VsTaskRunContext context,
    IVsTaskBody pTaskBody
)
public:
static IVsTask^ CreateAndStartTask(
    IVsTaskSchedulerService^ scheduler, 
    VsTaskRunContext context, 
    IVsTaskBody^ pTaskBody
)
static member CreateAndStartTask : 
        scheduler:IVsTaskSchedulerService * 
        context:VsTaskRunContext * 
        pTaskBody:IVsTaskBody -> IVsTask
public static function CreateAndStartTask(
    scheduler : IVsTaskSchedulerService, 
    context : VsTaskRunContext, 
    pTaskBody : IVsTaskBody
) : IVsTask

Parameters

Return Value

Type: Microsoft.VisualStudio.Shell.Interop.IVsTask
The task that was created.

.NET Framework Security

See Also

Reference

VsTaskLibraryHelper Class

Microsoft.VisualStudio.Shell Namespace