Skip to main content
UserInformation.AccountPictureChanged | accountpicturechanged event

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.
 

Syntax


function onAccountPictureChanged(eventArgs) { /* Your code */ }
 
// addEventListener syntax
userInformation.addEventListener("accountpicturechanged", onAccountPictureChanged);
userInformation.removeEventListener("accountpicturechanged", onAccountPictureChanged);
 
- or -

userInformation.onaccountpicturechanged = onAccountPictureChanged;

public static event EventHandler<object> AccountPictureChanged

Public Shared Event AccountPictureChanged As EventHandler(Of Object)

public:
static event EventHandler<object>^ AccountPictureChanged {
   Windows::Foundation::EventRegistrationToken add(EventHandler<object>^ value);
   void remove(Windows::Foundation::EventRegistrationToken token);
}

Event information

DelegateEventHandler [JavaScript] | System.EventHandler<Object> [.NET] | Windows.Foundation.EventHandler<Object> [C++]

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.

Requirements (Windows 10 device family)

Device family

Desktop, introduced version 10.0.10240.0
Mobile, introduced version 10.0.10240.0

API contract

Windows.System.UserProfile.UserProfileContract, introduced version 1.0

Namespace

Windows.System.UserProfile
Windows::System::UserProfile [C++]

Metadata

Windows.System.UserProfile.UserProfileContract.winmd

Requirements (Windows 8.x and Windows Phone 8.x)

Minimum supported client

Windows 8

Minimum supported server

Windows Server 2012

Minimum supported phone

Windows Phone 8.1 [Windows Runtime apps only]

Namespace

Windows.System.UserProfile
Windows::System::UserProfile [C++]

Metadata

Windows.winmd

See also

UserInformation
User