OnCompleted Method
Collapse the table of content
Expand the table of content

ConfiguredTaskAwaitable.ConfiguredTaskAwaiter.OnCompleted Method

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

Schedules the continuation onto the Task associated with this TaskAwaiter.

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

'Declaration
Public Sub OnCompleted ( _
	continuation As Action _
)

Parameters

continuation
Type: System.Action
The action to invoke when the await operation completes.

Implements

INotifyCompletion.OnCompleted(Action)

ExceptionCondition
ArgumentNullException

The continuation argument is Nothing.

NullReferenceException

The awaiter was not properly initialized.

This method is intended for compiler user and is not intended for use directly in code.

Windows Phone OS

Supported in: 8.1, 8.0

Show:
© 2017 Microsoft