Compartilhar via


VsTaskLibraryHelper.ContinueWith Method (IVsTask, VsTaskRunContext, VsTaskContinuationOptions, IVsTaskBody, Object)

Appends the provided action (using the specified options) to this task to be run after the task is run to completion. The action is invoked on the context provided. Overrides ContinueWithEx.

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

Syntax

'Declaração
<ExtensionAttribute> _
Public Shared Function ContinueWith ( _
    task As IVsTask, _
    context As VsTaskRunContext, _
    options As VsTaskContinuationOptions, _
    taskBody As IVsTaskBody, _
    asyncState As Object _
) As IVsTask
public static IVsTask ContinueWith(
    this IVsTask task,
    VsTaskRunContext context,
    VsTaskContinuationOptions options,
    IVsTaskBody taskBody,
    Object asyncState
)

Parameters

  • asyncState
    Type: System.Object
    [in] Asynchronous state for the task.

Return Value

Type: Microsoft.VisualStudio.Shell.Interop.IVsTask
A new IVsTask instance that has the current task as its parent.

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type IVsTask. 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).

.NET Framework Security

See Also

Reference

VsTaskLibraryHelper Class

ContinueWith Overload

Microsoft.VisualStudio.Shell Namespace