BackgroundActivatedEventArgs 类

定义

使 IBackgroundTask.Run 方法中的所有数据在后台触发器激活应用时可供事件处理程序使用。

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

Windows 要求

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

注解

此对象将传递到后台激活的事件处理程序。

属性

TaskInstance

获取 IBackgroundTask.Run 方法可用的数据,该数据导致应用被激活。

适用于

另请参阅