Compartilhar via


PowerManager.DisplayStatusChanged Evento

Definição

Gerado quando a status da exibição associada à sessão do aplicativo foi alterada.

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

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

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

Tipo de evento

Comentários

Para obter a status atual da exibição em resposta a esse evento, use a propriedade DisplayStatus. Esse evento corresponde ao GUID de configuração de energiaGUID_SESSION_DISPLAY_STATUS.

Aplica-se a

Confira também