Compartilhar via


DeviceAccessInformation.AccessChanged Evento

Definição

Gerado quando o acesso a um dispositivo é alterado.

// Register
event_token AccessChanged(TypedEventHandler<DeviceAccessInformation, DeviceAccessChangedEventArgs const&> const& handler) const;

// Revoke with event_token
void AccessChanged(event_token const* cookie) const;

// Revoke with event_revoker
DeviceAccessInformation::AccessChanged_revoker AccessChanged(auto_revoke_t, TypedEventHandler<DeviceAccessInformation, DeviceAccessChangedEventArgs const&> const& handler) const;
public event TypedEventHandler<DeviceAccessInformation,DeviceAccessChangedEventArgs> AccessChanged;
function onAccessChanged(eventArgs) { /* Your code */ }
deviceAccessInformation.addEventListener("accesschanged", onAccessChanged);
deviceAccessInformation.removeEventListener("accesschanged", onAccessChanged);
- or -
deviceAccessInformation.onaccesschanged = onAccessChanged;
Public Custom Event AccessChanged As TypedEventHandler(Of DeviceAccessInformation, DeviceAccessChangedEventArgs) 

Tipo de evento

Aplica-se a