IVsTaskCompletionSource Interface
Visual Studio 2015
Interacts with a task completion source to set its state and get the internal IVsTask instance.
Assembly: Microsoft.VisualStudio.Shell.Interop.11.0 (in Microsoft.VisualStudio.Shell.Interop.11.0.dll)
| Name | Description | |
|---|---|---|
![]() | Task | Gets the task owned by this source. |
| Name | Description | |
|---|---|---|
![]() | AddDependentTask(IVsTask) | Adds the specified task to the task completion sources dependent task list. Then if Wait is called on IVsTaskCompletionSource.Task, the UI can be unblocked correctly. |
![]() | SetCanceled() | Sets the task owned by this source to cancelled state, also cancelling the task. |
![]() | SetFaulted(Int32) | Sets the task owned by this source to the faulted state (with the given HRESULT code). |
![]() | SetResult(Object) | Sets the task owned by this source to completed state with the result. |
Show:

