WebAccountMonitor.AccountPictureUpdated Kejadian
Definisi
Penting
Beberapa informasi terkait produk prarilis yang dapat diubah secara signifikan sebelum dirilis. Microsoft tidak memberikan jaminan, tersirat maupun tersurat, sehubungan dengan informasi yang diberikan di sini.
Diaktifkan saat gambar WebAccount yang dipantau berubah.
// 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)
Jenis Acara
Persyaratan Windows
Rangkaian perangkat |
Windows 10, version 2004 (diperkenalkan dalam 10.0.19041.0)
|
API contract |
Windows.Foundation.UniversalApiContract (diperkenalkan dalam v10.0)
|
Keterangan
Ketika gambar diperbarui, WAM akan mengaktifkan peristiwa Diperbarui dan AccountPictureUpdated sehingga pengguna yang melacak pembaruan gambar dengan mendengarkan peristiwa yang diperbarui tidak akan mengalami kemunculan.
Properti Boolean baru "IsPictureUpdated" ada dalam payload peristiwa yang memungkinkan penelepon hanya mendengarkan peristiwa AccountUpdated untuk membedakan antara pembaruan pikutur dan pembaruan akun normal.