ConsoleLifetime.StopAsync(CancellationToken) Metodo

Definizione

Questo metodo non esegue alcuna operazione.

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

Parametri

cancellationToken
CancellationToken

Istanza del token di annullamento.

Valori restituiti

Oggetto Task che rappresenta un'attività completata.

Implementazioni

Eccezioni

Il token di annullamento è stato annullato. Questa eccezione viene archiviata nell'attività restituita.

Commenti

Questa API supporta l'infrastruttura .NET e non deve essere usata direttamente dal codice.

Si applica a