TaskAwaiter<TResult>.GetResult TaskAwaiter<TResult>.GetResult TaskAwaiter<TResult>.GetResult TaskAwaiter<TResult>.GetResult Method

Definition

Ends the wait for the completion of the asynchronous task.

This API supports the product infrastructure and is not intended to be used directly from your code.

public:
 TResult GetResult();
public TResult GetResult ();
member this.GetResult : unit -> 'Result
Public Function GetResult () As TResult

Returns

TResult TResult TResult TResult

The result of the completed task.

Exceptions

The task completed in a Faulted state.

Remarks

This type and its members are intended for use by the compiler.

Applies to