TaskAwaiter.OnCompleted Method
[ This article is for Windows Phone 8 developers. If you’re developing for Windows 10, see the latest documentation. ]
Sets the action to perform when the TaskAwaiter object stops waiting for the asynchronous task to complete.
Assembly: mscorlib (in mscorlib.dll)
Parameters
- continuation
- Type: System.Action
The action to perform when the wait operation completes.
Implements
INotifyCompletion.OnCompleted(Action)| Exception | Condition |
|---|---|
| ArgumentNullException | continuation is null. |
| NullReferenceException | The TaskAwaiter object was not properly initialized. |
Show: