Compartir a través de


PowerManager.UserPresenceStatusChanged Evento

Definición

Se genera cuando el estado del usuario asociado a la sesión de la aplicación ha cambiado.

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

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

// Revoke with event_revoker
static PowerManager::UserPresenceStatusChanged_revoker UserPresenceStatusChanged(auto_revoke_t, EventHandler<IInspectable> const& handler) const;
public static event System.EventHandler<object> UserPresenceStatusChanged;
function onUserPresenceStatusChanged(eventArgs) { /* Your code */ }
Microsoft.Windows.System.Power.PowerManager.addEventListener("userpresencestatuschanged", onUserPresenceStatusChanged);
Microsoft.Windows.System.Power.PowerManager.removeEventListener("userpresencestatuschanged", onUserPresenceStatusChanged);
- or -
Microsoft.Windows.System.Power.PowerManager.onuserpresencestatuschanged = onUserPresenceStatusChanged;
Public Shared Custom Event UserPresenceStatusChanged As EventHandler(Of Object) 

Tipo de evento

Comentarios

Para obtener el estado actual del usuario en respuesta a este evento, use la propiedad UserPresenceStatus. Este evento corresponde al GUID de configuración de energía GUID_SESSION_USER_PRESENCE.

Se aplica a

Consulte también