VsTaskLibraryHelper::ContinueWith Method (IVsTask^, VsTaskRunContext, VsTaskContinuationOptions, IVsTaskBody^, Object^)
Visual Studio 2015
Uses the specified options to append to this task the provided action, to be run after the task is run to completion. The action is invoked on the provided context. Overrides ContinueWithEx.
Assembly: Microsoft.VisualStudio.Shell.14.0 (in Microsoft.VisualStudio.Shell.14.0.dll)
public: [ExtensionAttribute] static IVsTask^ ContinueWith( IVsTask^ task, VsTaskRunContext context, VsTaskContinuationOptions options, IVsTaskBody^ taskBody, Object^ asyncState )
Parameters
- task
-
Type:
Microsoft.VisualStudio.Shell.Interop::IVsTask^
[in] The task to which to append the action.
- context
-
Type:
Microsoft.VisualStudio.Shell::VsTaskRunContext
[in] Where to run this task.
- options
-
Type:
Microsoft.VisualStudio.Shell::VsTaskContinuationOptions
[in] Enables the setting of TPL Task continuation options.
- taskBody
-
Type:
Microsoft.VisualStudio.Shell.Interop::IVsTaskBody^
[in] The action to be executed.
- asyncState
-
Type:
System::Object^
[in] The 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.
Show: