Compartir a través de


IVsTask.GetResult Method

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.

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

Syntax

'Declaration
Function GetResult As Object
Object GetResult()
Object^ GetResult()
abstract GetResult : unit -> Object
function GetResult() : Object

Return Value

Type: Object
The result set by the task.

Remarks

This method can return VS_E_CIRCULARTASKDEPENDENCY if the task library determines that the call would result in a deadlock. It may also return VS_E_TASKSCHEDULERFAIL, or TaskSchedulingException if the task library was not able to schedule one of the tasks that was required to complete the awaited task.

.NET Framework Security

See Also

Reference

IVsTask Interface

Microsoft.VisualStudio.Shell.Interop Namespace