GetResult Method
Collapse the table of content
Expand the table of content

ConfiguredTaskAwaitable<TResult>.ConfiguredTaskAwaiter.GetResult Method

[ This article is for Windows Phone 8 developers. If you’re developing for Windows 10, see the latest documentation. ]

Ends the await on the completed Task<TResult>.

Namespace:  System.Runtime.CompilerServices
Assembly:  mscorlib (in mscorlib.dll)

public TResult GetResult()

Return Value

Type: TResult
The result of the completed Task<TResult>.

ExceptionCondition
NullReferenceException

The awaiter was not properly initialized.

TaskCanceledException

The task was canceled.

Exception

The task completed in a Faulted state.

Windows Phone OS

Supported in: 8.1, 8.0

Show:
© 2017 Microsoft