IVsTaskCompletionSource Interface

 

Interacts with a task completion source to set its state and get the internal IVsTask instance.

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

[InterfaceTypeAttribute(ComInterfaceType.InterfaceIsIUnknown)]
[GuidAttribute("CE465203-16BC-4EBD-B4D1-9B4416B80931")]
public interface IVsTaskCompletionSource

NameDescription
System_CAPS_pubpropertyTask

Gets the task owned by this source.

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: