Partager via


VsTaskLibraryHelper.CreateAndStartTaskEx Method

Creates a Visual Studio task that's executed with 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 CreateAndStartTaskEx ( _
    scheduler As IVsTaskSchedulerService, _
    context As VsTaskRunContext, _
    options As VsTaskCreationOptions, _
    pTaskBody As IVsTaskBody, _
    pAsyncState As Object _
) As IVsTask
public static IVsTask CreateAndStartTaskEx(
    IVsTaskSchedulerService scheduler,
    VsTaskRunContext context,
    VsTaskCreationOptions options,
    IVsTaskBody pTaskBody,
    Object pAsyncState
)
public:
static IVsTask^ CreateAndStartTaskEx(
    IVsTaskSchedulerService^ scheduler, 
    VsTaskRunContext context, 
    VsTaskCreationOptions options, 
    IVsTaskBody^ pTaskBody, 
    Object^ pAsyncState
)
static member CreateAndStartTaskEx : 
        scheduler:IVsTaskSchedulerService * 
        context:VsTaskRunContext * 
        options:VsTaskCreationOptions * 
        pTaskBody:IVsTaskBody * 
        pAsyncState:Object -> IVsTask
public static function CreateAndStartTaskEx(
    scheduler : IVsTaskSchedulerService, 
    context : VsTaskRunContext, 
    options : VsTaskCreationOptions, 
    pTaskBody : IVsTaskBody, 
    pAsyncState : Object
) : IVsTask

Parameters

  • pAsyncState
    Type: Object

    The asynchronous state for the task.

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