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 中引入)

注解

实现 WebUIApplication.LeavingBackgroundEventHandler 以响应 WebUIApplication.leavingbackground 事件时,将访问此对象。

方法

GetDeferral()

在应用停止在后台运行之前请求延迟。

适用于

另请参阅