Export (0) Print
Expand All

Task<TResult>::ConfigureAwait Method

.NET Framework 4.5

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.

.NET Framework

Supported in: 4.6, 4.5

Supported in: Windows Phone 8.1

Supported in: Windows Phone Silverlight 8.1

Supported in: Windows Phone Silverlight 8
Show:
© 2015 Microsoft