DeviceWatcher.Stopped DeviceWatcher.Stopped DeviceWatcher.Stopped DeviceWatcher.Stopped DeviceWatcher.Stopped Event

Definition

Event that is raised when the enumeration operation has been stopped.

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

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

// Revoke with event_revoker
Stopped_revoker Stopped(auto_revoke_t, TypedEventHandler<DeviceWatcher, object> const& handler) const;
public event TypedEventHandler<DeviceWatcher, object> Stopped
Public Event Stopped As TypedEventHandler (Of DeviceWatcher, object)
function onStopped(eventArgs){/* Your code */}


deviceWatcher.addEventListener("stopped", onStopped);
deviceWatcher.removeEventListener("stopped", onStopped);