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 イベントの両方を発生させ、Updated イベントをリッスンして画像の更新を追跡していたユーザーが後退しないようにします。

新しい Boolean プロパティ "IsPictureUpdated" は、呼び出し元が AccountUpdated イベントのみをリッスンして、picuture 更新と通常のアカウント更新を区別できるようにするイベントのペイロードに存在します。

適用対象

こちらもご覧ください