System.Runtime.CompilerServices.TaskAwaiter<TResult>.OnCompleted Method

Sets the action to perform when the System.Runtime.CompilerServices.TaskAwaiter`1 object stops waiting for the asynchronous task to complete.

Syntax

public void OnCompleted (Action continuation)

Parameters

continuation
The action to perform when the wait operation completes.

Remarks

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

Requirements

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