LeavingBackgroundEventArgs 類別

定義

當應用程式離開背景狀態時,取得延遲物件。

public ref class LeavingBackgroundEventArgs sealed : ILeavingBackgroundEventArgs
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 196608)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
class LeavingBackgroundEventArgs final : ILeavingBackgroundEventArgs
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 196608)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
public sealed class LeavingBackgroundEventArgs : ILeavingBackgroundEventArgs
Public NotInheritable Class LeavingBackgroundEventArgs
Implements ILeavingBackgroundEventArgs
繼承
Object Platform::Object IInspectable LeavingBackgroundEventArgs
屬性
實作

Windows 需求

裝置系列
Windows 10 Anniversary Edition (已於 10.0.14393.0 引進)
API contract
Windows.Foundation.UniversalApiContract (已於 v3.0 引進)

備註

此物件會傳遞至應用程式的離開背景事件處理常式。

提示

此事件會在顯示任何 UI 之前引發,而且是一個很好的位置,以確保您以程式設計方式載入的任何資產都已就緒,以便正確顯示 UI。

方法

GetDeferral()

取得延遲物件,延遲在應用程式呼叫 Deferral.Complete 或流覽期限通過之前,從背景中執行到在前景中執行的轉換。

適用於

另請參閱