DeviceWatcher.Updated Evento

Definición

Evento que se genera cuando se actualiza un dispositivo en la colección de dispositivos enumerados.

// Register
event_token Updated(TypedEventHandler<DeviceWatcher, DeviceInformationUpdate const&> const& handler) const;

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

// Revoke with event_revoker
DeviceWatcher::Updated_revoker Updated(auto_revoke_t, TypedEventHandler<DeviceWatcher, DeviceInformationUpdate const&> const& handler) const;
public event TypedEventHandler<DeviceWatcher,DeviceInformationUpdate> Updated;
function onUpdated(eventArgs) { /* Your code */ }
deviceWatcher.addEventListener("updated", onUpdated);
deviceWatcher.removeEventListener("updated", onUpdated);
- or -
deviceWatcher.onupdated = onUpdated;
Public Custom Event Updated As TypedEventHandler(Of DeviceWatcher, DeviceInformationUpdate) 

Tipo de evento

Comentarios

Nota

Una aplicación debe suscribirse a todos los eventos agregados, quitados y actualizados que se notificarán cuando haya adiciones, eliminaciones o actualizaciones de dispositivos. Si una aplicación controla solo el evento agregado , no recibirá una actualización si se agrega un dispositivo al sistema una vez completada la enumeración inicial del dispositivo.

Se aplica a