DeviceWatcher.Removed Evento

Definición

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

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

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

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

Tipo de evento

Comentarios

Nota

Una aplicación debe suscribirse a todos los eventos agregados, quitados y actualizados para recibir notificaciones 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

Consulte también