Taal

SystemdLifetime.StopAsync(CancellationToken) Methode

Definitie

Asynchroon stopt en sluit de host af. Deze methode wordt aangeroepen vanuit StopAsync(CancellationToken).

public:
 virtual System::Threading::Tasks::Task ^ StopAsync(System::Threading::CancellationToken cancellationToken);
public System.Threading.Tasks.Task StopAsync(System.Threading.CancellationToken cancellationToken);
abstract member StopAsync : System.Threading.CancellationToken -> System.Threading.Tasks.Task
override this.StopAsync : System.Threading.CancellationToken -> System.Threading.Tasks.Task
Public Function StopAsync (cancellationToken As CancellationToken) As Task

Parameters

cancellationToken
CancellationToken

Een annuleringstoken dat aangeeft wanneer stoppen niet langer correct mag zijn.

Retouren

Een taak die de asynchrone stopbewerking aangeeft.

Implementeringen

Uitzonderingen

Het annuleringstoken is geannuleerd. Deze uitzondering wordt opgeslagen in de geretourneerde taak.

Van toepassing op