ConfigureAwait Method
Collapse the table of content
Expand the table of content

Task<TResult>.ConfigureAwait Method

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

Configures an awaiter used to await this Task<TResult>.

Namespace:  System.Threading.Tasks
Assembly:  mscorlib (in mscorlib.dll)

public ConfiguredTaskAwaitable<TResult> ConfigureAwait(
	bool continueOnCapturedContext
)

Parameters

continueOnCapturedContext
Type: System.Boolean
true to attempt to marshal the continuation back to the original context captured; otherwise, false.

Return Value

Type: System.Runtime.CompilerServices.ConfiguredTaskAwaitable<TResult>
An object used to await this task.

Windows Phone OS

Supported in: 8.1, 8.0

Show:
© 2017 Microsoft