共用方式為


IApplicationLifetime.ApplicationStopped 屬性

定義

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

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

屬性值

適用於