ClaimedLineDisplay.StatusUpdated 事件

定义

通知应用程序线路显示的电源状态发生了更改。

// Register
event_token StatusUpdated(TypedEventHandler<ClaimedLineDisplay, LineDisplayStatusUpdatedEventArgs const&> const& handler) const;

// Revoke with event_token
void StatusUpdated(event_token const* cookie) const;

// Revoke with event_revoker
ClaimedLineDisplay::StatusUpdated_revoker StatusUpdated(auto_revoke_t, TypedEventHandler<ClaimedLineDisplay, LineDisplayStatusUpdatedEventArgs const&> const& handler) const;
public event TypedEventHandler<ClaimedLineDisplay,LineDisplayStatusUpdatedEventArgs> StatusUpdated;
function onStatusUpdated(eventArgs) { /* Your code */ }
claimedLineDisplay.addEventListener("statusupdated", onStatusUpdated);
claimedLineDisplay.removeEventListener("statusupdated", onStatusUpdated);
- or -
claimedLineDisplay.onstatusupdated = onStatusUpdated;
Public Custom Event StatusUpdated As TypedEventHandler(Of ClaimedLineDisplay, LineDisplayStatusUpdatedEventArgs) 

事件类型

Windows 要求

设备系列
Windows 10 Fall Creators Update (在 10.0.16299.0 中引入)
API contract
Windows.Foundation.UniversalApiContract (在 v5.0 中引入)

注解

事件值与 CheckPowerStatusAsync 返回的值相同。

适用于