AppBroadcastTrigger 类

定义

表示在应用程序开始游戏广播时触发后台任务运行的事件。

public ref class AppBroadcastTrigger sealed : IBackgroundTrigger
/// [Windows.Foundation.Metadata.Activatable(Windows.ApplicationModel.Background.IAppBroadcastTriggerFactory, 65536, "Windows.Media.Capture.AppBroadcastContract")]
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Media.Capture.AppBroadcastContract, 65536)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
/// [Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
class AppBroadcastTrigger final : IBackgroundTrigger
[Windows.Foundation.Metadata.Activatable(typeof(Windows.ApplicationModel.Background.IAppBroadcastTriggerFactory), 65536, "Windows.Media.Capture.AppBroadcastContract")]
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Media.Capture.AppBroadcastContract), 65536)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
[Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
public sealed class AppBroadcastTrigger : IBackgroundTrigger
function AppBroadcastTrigger(providerKey)
Public NotInheritable Class AppBroadcastTrigger
Implements IBackgroundTrigger
继承
Object Platform::Object IInspectable AppBroadcastTrigger
属性
实现

Windows 要求

设备系列
Windows Desktop Extension SDK (在 10.0.15063.0 中引入)
API contract
Windows.Media.Capture.AppBroadcastContract (在 v1.0 中引入)

注解

重要

只有第一方应用程序才应使用此类。

在注册成功之前,必须在清单中声明后台任务。 此类的实例在其 Run 方法中传递给后台任务。

构造函数

AppBroadcastTrigger(String)

使用将执行游戏广播的提供商的名称构造 AppBroadcastTrigger。

属性

ProviderInfo

提供有关正在广播游戏的应用程序的信息。

适用于