Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
ConfigureAwait Method

Task.ConfigureAwait Method

.NET Framework 4.6 and 4.5

Configures an awaiter used to await this Task.

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

'Declaration
Public Function ConfigureAwait ( _
	continueOnCapturedContext As Boolean _
) As ConfiguredTaskAwaitable

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
An object used to await this task.

.NET Framework

Supported in: 4.6, 4.5

.NET for Windows Phone apps

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