Bagikan melalui


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.12.0 (in Microsoft.VisualStudio.Shell.12.0.dll)

Syntax

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

Parameters

Return Value

Type: Microsoft.VisualStudio.Shell.Interop.IVsTask

.NET Framework Security

See Also

Reference

VsTaskLibraryHelper Class

CreateAndStartTask Overload

Microsoft.VisualStudio.Shell Namespace