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 事件,讓接聽 Update 事件來追蹤圖片更新的使用者將不會回歸。

新的布林值屬性 「IsPictureUpdated」 存在於事件的承載中,允許只接聽 AccountUpdated 事件的呼叫端區分圖片更新和一般帳戶更新。

適用於

另請參閱