Share via


IVsTask.GetResult Method

Definition

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.

public:
 System::Object ^ GetResult();
public:
 Platform::Object ^ GetResult();
winrt::Windows::Foundation::IInspectable GetResult();
public object GetResult ();
abstract member GetResult : unit -> obj
Public Function GetResult () As Object

Returns

The result set by the task.

Remarks

This method is safe to access from any thread.

Applies to