Compartir a través de


UserInformation.AccountPictureChanged Evento

Definición

Se produce cuando cambia la imagen o el nombre del usuario.

Importante

La clase UserInformation no se admite en Windows 10 o posterior. En su lugar, use la clase User . Consulte comentarios en la documentación de la clase UserInformation .

// Register
static event_token AccountPictureChanged(EventHandler<IInspectable> const& handler) const;

// Revoke with event_token
static void AccountPictureChanged(event_token const* cookie) const;

// Revoke with event_revoker
static UserInformation::AccountPictureChanged_revoker AccountPictureChanged(auto_revoke_t, EventHandler<IInspectable> const& handler) const;
/// [add: Windows.Foundation.Metadata.Deprecated("Use User instead of UserInformation. For more info, see MSDN.", Windows.Foundation.Metadata.DeprecationType.Deprecate, 131072, "Windows.System.UserProfile.UserProfileContract")]
/// [remove: Windows.Foundation.Metadata.Deprecated("Use User instead of UserInformation. For more info, see MSDN.", Windows.Foundation.Metadata.DeprecationType.Deprecate, 131072, "Windows.System.UserProfile.UserProfileContract")]
// Register
static event_token AccountPictureChanged(EventHandler<IInspectable> const& handler) const;

// Revoke with event_token
static void AccountPictureChanged(event_token const* cookie) const;

// Revoke with event_revoker
static UserInformation::AccountPictureChanged_revoker AccountPictureChanged(auto_revoke_t, EventHandler<IInspectable> const& handler) const;
public static event System.EventHandler<object> AccountPictureChanged;
[add: Windows.Foundation.Metadata.Deprecated("Use User instead of UserInformation. For more info, see MSDN.", Windows.Foundation.Metadata.DeprecationType.Deprecate, 131072, "Windows.System.UserProfile.UserProfileContract")]
[remove: Windows.Foundation.Metadata.Deprecated("Use User instead of UserInformation. For more info, see MSDN.", Windows.Foundation.Metadata.DeprecationType.Deprecate, 131072, "Windows.System.UserProfile.UserProfileContract")]
public static event System.EventHandler<object> AccountPictureChanged;
function onAccountPictureChanged(eventArgs) { /* Your code */ }
Windows.System.UserProfile.UserInformation.addEventListener("accountpicturechanged", onAccountPictureChanged);
Windows.System.UserProfile.UserInformation.removeEventListener("accountpicturechanged", onAccountPictureChanged);
- or -
Windows.System.UserProfile.UserInformation.onaccountpicturechanged = onAccountPictureChanged;
Public Shared Custom Event AccountPictureChanged As EventHandler(Of Object) 

Tipo de evento

Atributos

Comentarios

Importante

La clase UserInformation no se admite en Windows 10 o posterior. En su lugar, use la clase User . Consulte comentarios en la documentación de la clase UserInformation .

Use este evento para supervisar los cambios en la imagen de la cuenta del usuario.

La configuración de privacidad puede bloquear el acceso a este evento. Si se bloquea el acceso, la propiedad AccountPictureChangeEnabled será false.

Se aplica a

Consulte también