IVsTaskCompletionSource Methods

 

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

NameDescription
System_CAPS_pubmethodAddDependentTask(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.

System_CAPS_pubmethodSetCanceled()

Sets the task owned by this source to cancelled state, also cancelling the task.

System_CAPS_pubmethodSetFaulted(Int32)

Sets the task owned by this source to the faulted state (with the given HRESULT code).

System_CAPS_pubmethodSetResult(Object^)

Sets the task owned by this source to completed state with the result.

Return to top
Show: