Note

Access to this page requires authorization. You can try signing in or .

Access to this page requires authorization. You can try .

TaskAwaiter.GetResult Method

Definition

Namespace:
System.Runtime.CompilerServices
Assemblies:
mscorlib.dll, System.Threading.Tasks.dll
Assemblies:
netstandard.dll, System.Runtime.dll
Assembly:
System.Threading.Tasks.dll
Assembly:
System.Runtime.dll
Assembly:
mscorlib.dll
Assembly:
netstandard.dll
Source:
TaskAwaiter.cs
Source:
TaskAwaiter.cs
Source:
TaskAwaiter.cs
Source:
TaskAwaiter.cs
Source:
TaskAwaiter.cs

Important

Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.

Ends the wait for the completion of the asynchronous task.

public:
 void GetResult();
public void GetResult();
member this.GetResult : unit -> unit
Public Sub GetResult ()

Exceptions

The TaskAwaiter object was not properly initialized.

The task was canceled.

The task completed in a Faulted state.

The task was canceled.

Applies to


Feedback

Was this page helpful?