WebAccountMonitor.AccountPictureUpdated Evento
Definizione
Importante
Alcune informazioni sono relative alla release non definitiva del prodotto, che potrebbe subire modifiche significative prima della release definitiva. Microsoft non riconosce alcuna garanzia, espressa o implicita, in merito alle informazioni qui fornite.
Viene generato quando cambia l'immagine di un WebAccount monitorato.
// 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)
Tipo evento
Requisiti Windows
Famiglia di dispositivi |
Windows 10, version 2004 (è stato introdotto in 10.0.19041.0)
|
API contract |
Windows.Foundation.UniversalApiContract (è stato introdotto in v10.0)
|
Commenti
Quando un'immagine viene aggiornata, WAM attiverà gli eventi Updated e AccountPictureUpdated in modo che gli utenti che fossero in grado di tenere traccia degli aggiornamenti delle immagini ascoltando l'evento Updated non regredisce.
Esiste una nuova proprietà booleana "IsPictureUpdated" nel payload degli eventi che consente ai chiamanti di ascoltare solo gli eventi AccountUpdated di distinguere tra un aggiornamento di picuture e un normale aggiornamento dell'account.