DeviceWatcher.Updated DeviceWatcher.Updated DeviceWatcher.Updated DeviceWatcher.Updated DeviceWatcher.Updated Event


Event that is raised when a device is updated in the collection of enumerated devices.

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

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

// Revoke with event_revoker
Updated_revoker Updated(auto_revoke_t, TypedEventHandler<DeviceWatcher, DeviceInformationUpdate> const& handler) const;
public event TypedEventHandler<DeviceWatcher, DeviceInformationUpdate> Updated
Public Event Updated As TypedEventHandler (Of DeviceWatcher, DeviceInformationUpdate)
function onUpdated(eventArgs){/* Your code */}

deviceWatcher.addEventListener("updated", onUpdated);
deviceWatcher.removeEventListener("updated", onUpdated);



An app must subscribe to all of the added, removed, and updated events to be notified when there are device additions, removals or updates. If an app handles only the added event, it will not receive an update if a device is added to the system after the initial device enumeration completes.