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

TaskAwaiter<TResult>.GetResult Method

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

Ends the wait for the completion of the asynchronous task.

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

public TResult GetResult()

Return Value

Type: TResult
The result of the completed task.

ExceptionCondition
NullReferenceException

The TaskAwaiter<TResult> object was not properly initialized.

TaskCanceledException

The task was canceled.

Exception

The task completed in a Faulted state.

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

Windows Phone OS

Supported in: 8.1, 8.0

Show:
© 2017 Microsoft