EnteredBackgroundEventArgs 类

定义

获取应用进入后台状态时的延迟对象。

public ref class EnteredBackgroundEventArgs sealed : IEnteredBackgroundEventArgs
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 196608)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
class EnteredBackgroundEventArgs final : IEnteredBackgroundEventArgs
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 196608)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
public sealed class EnteredBackgroundEventArgs : IEnteredBackgroundEventArgs
Public NotInheritable Class EnteredBackgroundEventArgs
Implements IEnteredBackgroundEventArgs
继承
Object Platform::Object IInspectable EnteredBackgroundEventArgs
属性
实现

Windows 要求

设备系列
Windows 10 Anniversary Edition (在 10.0.14393.0 中引入)
API contract
Windows.Foundation.UniversalApiContract (在 v3.0 中引入)

注解

此对象将传递到应用输入的后台事件处理程序。

提示

当应用进入后台状态时,其 UI 均不可见。

方法

GetDeferral()

获取延迟对象,该对象将延迟从后台状态运行到挂起状态的转换,直到应用调用 Deferral.Complete 或导航的截止时间已过。

适用于

另请参阅