IVsTask Methods
Assembly: Microsoft.VisualStudio.Shell.Interop.11.0 (in Microsoft.VisualStudio.Shell.Interop.11.0.dll)
| Name | Description | |
|---|---|---|
![]() | AbortIfCanceled() | Aborts the task if the task has been cancelled. Use this method to return from a cancelled task. |
![]() | Cancel() | Cancels the task group. An antecedent task and all of its children share the same cancellation token, so cancelling any of the tasks cancels the whole task group. |
![]() | ContinueWith(UInt32, IVsTaskBody^) | Appends the provided action to this task to be run after the task is run to completion. The action is invoked on the context provided. |
![]() | ContinueWithEx(UInt32, UInt32, 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. |
![]() | GetResult() | Waits for the task to complete (not including any continuations) and returns the result set by the task. If the task returns an error code or an exception, this method returns the same error code. |
![]() | Start() | Starts the task. |
![]() | Wait() | Waits for the task to complete (not including any continuations). If the task returns an error code or an exception, this method returns the same error code. |
![]() | WaitEx(Int32, UInt32) | Waits for the task to complete (not including any continuations). You can either specify a timeout (or INFINITE) or set the option to abort on task cancellation. |
