BuildMaster SDK Reference
Version:

Result<TResult>(System.Threading.Tasks.Task<TResult> task) Method

Returns the result of a task after it completes.

Syntax

public static TResult Result<TResult>(Task<TResult> task)

Parameters

task
Type: System.Threading.Tasks.Task<TResult>

The task to wait for.

Returns

The result of the task.

Exceptions

System.ArgumentNullException

task is null (Nothing in Visual Basic).