AppBroadcastHeartbeatRequestedEventArgs 类

定义

为系统定期引发的 AppBroadcastBackgroundService.HeartbeatRequested 事件提供数据,以确认广播后台任务当前处于活动状态。

注意

此 API 需要 appBroadcastappBroadcastSettings 功能,这些功能并非适用于所有 Windows 应用。 除非你的开发人员帐户由 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

获取或设置一个值,该值指示广播后台任务当前是否处于活动状态。

适用于