Compartilhar via


VsTaskLibraryHelper.ContinueWhenAllCompleted Method (IVsTaskSchedulerService, VsTaskRunContext, array<IVsTask , IVsTaskBody)

Creates a Visual Studio task that's run after the provided tasks have either finished running or been cancelled. Overrides ContinueWhenAllCompleted.

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

Syntax

'Declaration
<ExtensionAttribute> _
Public Shared Function ContinueWhenAllCompleted ( _
    service As IVsTaskSchedulerService, _
    context As VsTaskRunContext, _
    dependentTasks As IVsTask(), _
    taskBody As IVsTaskBody _
) As IVsTask
public static IVsTask ContinueWhenAllCompleted(
    this IVsTaskSchedulerService service,
    VsTaskRunContext context,
    IVsTask[] dependentTasks,
    IVsTaskBody taskBody
)
[ExtensionAttribute]
public:
static IVsTask^ ContinueWhenAllCompleted(
    IVsTaskSchedulerService^ service, 
    VsTaskRunContext context, 
    array<IVsTask^>^ dependentTasks, 
    IVsTaskBody^ taskBody
)
static member ContinueWhenAllCompleted : 
        service:IVsTaskSchedulerService * 
        context:VsTaskRunContext * 
        dependentTasks:IVsTask[] * 
        taskBody:IVsTaskBody -> IVsTask
public static function ContinueWhenAllCompleted(
    service : IVsTaskSchedulerService, 
    context : VsTaskRunContext, 
    dependentTasks : IVsTask[], 
    taskBody : IVsTaskBody
) : IVsTask

Parameters

Return Value

Type: Microsoft.VisualStudio.Shell.Interop.IVsTask
The task scheduler service that's creating the task.

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type IVsTaskSchedulerService. When you use instance method syntax to call this method, omit the first parameter. For more information, see Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).

Remarks

The task service takes ownership of dependent tasks after this call.

.NET Framework Security

See Also

Reference

VsTaskLibraryHelper Class

ContinueWhenAllCompleted Overload

Microsoft.VisualStudio.Shell Namespace