共用方式為


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

提供廣播遊戲之應用程式的相關資訊。

適用於