Condividi tramite


WebAccountMonitor.AccountPictureUpdated Evento

Definizione

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.

Si applica a

Vedi anche