Method GetResult
GetResult()
Ends the wait for the completion of the asynchronous task.
Declaration
public T GetResult()
Returns
| Type | Description |
|---|---|
| T |
Exceptions
| Type | Condition |
|---|---|
| NullReferenceException | The TaskAwaiter object was not properly initialized. |
| OperationCanceledException | The task was canceled. |
| Exception | The task completed in a Faulted state. |
| TaskCanceledException | The task was canceled. |