共用方式為


IServer.StopAsync(CancellationToken) 方法

定義

盡可能停止處理要求並關閉伺服器。

public:
 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
Public Function StopAsync (cancellationToken As CancellationToken) As Task

參數

cancellationToken
CancellationToken

指出是否應該中止正常關機。

傳回

適用於