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 或导航的截止时间已过。

适用于

另请参阅