Partilhar via


AwaitExtensions.ConfigureAwait(YieldAwaitable, Boolean) Method

Definition

public:
[System::Runtime::CompilerServices::Extension]
 static Microsoft::VisualStudio::Threading::AwaitExtensions::ConfiguredTaskYieldAwaitable ConfigureAwait(System::Runtime::CompilerServices::YieldAwaitable yieldAwaitable, bool continueOnCapturedContext);
public static Microsoft.VisualStudio.Threading.AwaitExtensions.ConfiguredTaskYieldAwaitable ConfigureAwait (this System.Runtime.CompilerServices.YieldAwaitable yieldAwaitable, bool continueOnCapturedContext);
static member ConfigureAwait : System.Runtime.CompilerServices.YieldAwaitable * bool -> Microsoft.VisualStudio.Threading.AwaitExtensions.ConfiguredTaskYieldAwaitable
<Extension()>
Public Function ConfigureAwait (yieldAwaitable As YieldAwaitable, continueOnCapturedContext As Boolean) As AwaitExtensions.ConfiguredTaskYieldAwaitable

Parameters

yieldAwaitable
YieldAwaitable

The result of Yield().

continueOnCapturedContext
Boolean

A value indicating whether the continuation should run on the captured SynchronizationContext, if any.

Returns

An awaitable.

Applies to