Task<TResult>.ConfigureAwait Methode

Definitie

Overloads

Name Description
ConfigureAwait(Boolean)

Hiermee configureert u een wachter die wordt gebruikt om dit Task<TResult>te wachten.

ConfigureAwait(ConfigureAwaitOptions)

Hiermee configureert u een wachter die wordt gebruikt om dit Taskte wachten.

ConfigureAwait(Boolean)

Bron:
Future.cs
Bron:
Task_T.cs
Bron:
Future.cs
Bron:
Future.cs
Bron:
Future.cs

Hiermee configureert u een wachter die wordt gebruikt om dit Task<TResult>te wachten.

public:
 System::Runtime::CompilerServices::ConfiguredTaskAwaitable<TResult> ConfigureAwait(bool continueOnCapturedContext);
public System.Runtime.CompilerServices.ConfiguredTaskAwaitable<TResult> ConfigureAwait(bool continueOnCapturedContext);
override this.ConfigureAwait : bool -> System.Runtime.CompilerServices.ConfiguredTaskAwaitable<'Result>
Public Function ConfigureAwait (continueOnCapturedContext As Boolean) As ConfiguredTaskAwaitable(Of TResult)

Parameters

continueOnCapturedContext
Boolean

true to marshal the continuation back to the original context captured; anders, onwaar.

Retouren

Een object dat wordt gebruikt om deze taak te wachten.

Van toepassing op

ConfigureAwait(ConfigureAwaitOptions)

Bron:
Future.cs
Bron:
Task_T.cs
Bron:
Future.cs
Bron:
Future.cs

Hiermee configureert u een wachter die wordt gebruikt om dit Taskte wachten.

public:
 System::Runtime::CompilerServices::ConfiguredTaskAwaitable<TResult> ConfigureAwait(System::Threading::Tasks::ConfigureAwaitOptions options);
public System.Runtime.CompilerServices.ConfiguredTaskAwaitable<TResult> ConfigureAwait(System.Threading.Tasks.ConfigureAwaitOptions options);
override this.ConfigureAwait : System.Threading.Tasks.ConfigureAwaitOptions -> System.Runtime.CompilerServices.ConfiguredTaskAwaitable<'Result>
Public Function ConfigureAwait (options As ConfigureAwaitOptions) As ConfiguredTaskAwaitable(Of TResult)

Parameters

options
ConfigureAwaitOptions

Opties die worden gebruikt om te configureren hoe wacht op deze taak worden uitgevoerd.

Retouren

Een object dat wordt gebruikt om deze taak te wachten.

Uitzonderingen

Het options argument geeft een ongeldige waarde op.

Van toepassing op