UserInformation.AccountPictureChanged UserInformation.AccountPictureChanged UserInformation.AccountPictureChanged UserInformation.AccountPictureChanged UserInformation.AccountPictureChanged Event

Definition

Occurs when the user's image or name changes.

Important

The UserInformation class is not supported on Windows 10 or later. Use the User class instead. See Remarks in the UserInformation class documentation.

public : event EventHandler<Platform::Object> AccountPictureChanged
// Register
event_token AccountPictureChanged(EventHandler<Platform::Object> const& handler) const;

// Revoke with event_token
void AccountPictureChanged(event_token const& cookie) const;

// Revoke with event_revoker
AccountPictureChanged_revoker AccountPictureChanged(auto_revoke_t, EventHandler<Platform::Object> const& handler) const;
public event EventHandler<object> AccountPictureChanged
Public Event AccountPictureChanged As EventHandler (Of object)
function onAccountPictureChanged(eventArgs){/* Your code */}


userInformation.addEventListener("accountpicturechanged", onAccountPictureChanged);
userInformation.removeEventListener("accountpicturechanged", onAccountPictureChanged);

Remarks

Important

The UserInformation class is not supported on Windows 10 or later. Use the User class instead. See Remarks in the UserInformation class documentation.

Use this event to monitor changes to the user's account picture.

Access to this event can be blocked by privacy settings. If access is blocked, the AccountPictureChangeEnabled property will be false.

See also