共用方式為


IHostApplicationLifetime.ApplicationStopping 屬性

定義

當應用程式主機執行順利關機時觸發。 將封鎖關機動作,直到完成此事件為止。

public:
 property System::Threading::CancellationToken ApplicationStopping { System::Threading::CancellationToken get(); };
public System.Threading.CancellationToken ApplicationStopping { get; }
member this.ApplicationStopping : System.Threading.CancellationToken
Public ReadOnly Property ApplicationStopping As CancellationToken

屬性值

適用於