DeviceWatcher.Updated Event

Definition

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

// 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
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) 

Event Type

TypedEventHandler<DeviceWatcher,DeviceInformationUpdate>

Remarks

Note

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.

Applies to