共用方式為


AppBroadcastHeartbeatRequestedEventArgs 類別

定義

提供 AppBroadcastBackgroundService.HeartbeatRequested 事件的資料,由系統定期引發,以確認廣播背景工作目前為作用中。

注意

此 API 需要無法提供給所有 Windows 應用程式的appBroadcast 和 appBroadcastSettings功能。 除非您的開發人員帳戶是由 Microsoft 特別布建,否則呼叫此 API 會在執行時間失敗。

public ref class AppBroadcastHeartbeatRequestedEventArgs sealed
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Media.Capture.AppBroadcastContract, 65536)]
/// [Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
class AppBroadcastHeartbeatRequestedEventArgs final
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Media.Capture.AppBroadcastContract), 65536)]
[Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
public sealed class AppBroadcastHeartbeatRequestedEventArgs
Public NotInheritable Class AppBroadcastHeartbeatRequestedEventArgs
繼承
Object Platform::Object IInspectable AppBroadcastHeartbeatRequestedEventArgs
屬性

Windows 需求

裝置系列
Windows Desktop Extension SDK (已於 10.0.15063.0 引進)
API contract
Windows.Media.Capture.AppBroadcastContract (已於 v1.0 引進)
應用程式功能
appBroadcast appBroadcastSettings

備註

HeartbeatRequested 事件的處理常式中,將 Handled 屬性設定為 true,以確認廣播背景工作目前為作用中。

屬性

Handled

取得或設定值,指出廣播背景工作目前是否作用中。

適用於