語言

ApplicationLifetime.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

屬性值

實作

備註

此 API 支援 .NET 基礎架構,並非直接從你的程式碼中使用。

適用於