Share via


VsTaskBodyCallback Delegate

Used by the asynchronous task library helper as the method type for a task body (what the task executes). Users of the library can either pass in this delegate type directly or use one of the wrapper methods that wraps simpler anonymous functions to this delegate type.

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

Syntax

'Declaration
Public Delegate Function VsTaskBodyCallback ( _
    task As IVsTask, _
    parentTasks As IVsTask() _
) As Object
public delegate Object VsTaskBodyCallback(
    IVsTask task,
    IVsTask[] parentTasks
)
public delegate Object^ VsTaskBodyCallback(
    IVsTask^ task, 
    array<IVsTask^>^ parentTasks
)
type VsTaskBodyCallback = 
    delegate of  
        task:IVsTask * 
        parentTasks:IVsTask[] -> Object
JScript does not support delegates.

Parameters

  • parentTasks
    Type: array<Microsoft.VisualStudio.Shell.Interop.IVsTask[]

    An array that contains the dependent tasks that had to be completed before your task. Normally this is either empty if the task was a new task, or it contains a single task if the task was a continuation of another task.

Return Value

Type: System.Object

See Also

Reference

Microsoft.VisualStudio.Shell Namespace