Share via


WebAccountMonitor.AccountPictureUpdated 事件

定义

当受监视 的 WebAccount 的 图片更改时触发。

// Register
event_token AccountPictureUpdated(TypedEventHandler<WebAccountMonitor, WebAccountEventArgs const&> const& handler) const;

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

// Revoke with event_revoker
WebAccountMonitor::AccountPictureUpdated_revoker AccountPictureUpdated(auto_revoke_t, TypedEventHandler<WebAccountMonitor, WebAccountEventArgs const&> const& handler) const;
public event TypedEventHandler<WebAccountMonitor,WebAccountEventArgs> AccountPictureUpdated;
function onAccountPictureUpdated(eventArgs) { /* Your code */ }
webAccountMonitor.addEventListener("accountpictureupdated", onAccountPictureUpdated);
webAccountMonitor.removeEventListener("accountpictureupdated", onAccountPictureUpdated);
- or -
webAccountMonitor.onaccountpictureupdated = onAccountPictureUpdated;
Public Custom Event AccountPictureUpdated As TypedEventHandler(Of WebAccountMonitor, WebAccountEventArgs) 

事件类型

Windows 要求

设备系列
Windows 10, version 2004 (在 10.0.19041.0 中引入)
API contract
Windows.Foundation.UniversalApiContract (在 v10.0 中引入)

注解

更新图片时,WAM 将触发 Updated 和 AccountPictureUpdated 事件,以便通过侦听更新事件跟踪图片更新的用户不会回归。

事件的有效负载中存在新的布尔属性“IsPictureUpdated”,该属性允许仅侦听 AccountUpdated 事件的调用方区分图片更新和普通帐户更新。

适用于

另请参阅