DeviceWatcher.Stopped 事件

定义

枚举操作已停止时引发的事件。

// Register
event_token Stopped(TypedEventHandler<DeviceWatcher, IInspectable const&> const& handler) const;

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

// Revoke with event_revoker
DeviceWatcher::Stopped_revoker Stopped(auto_revoke_t, TypedEventHandler<DeviceWatcher, IInspectable const&> const& handler) const;
public event TypedEventHandler<DeviceWatcher,object> Stopped;
function onStopped(eventArgs) { /* Your code */ }
deviceWatcher.addEventListener("stopped", onStopped);
deviceWatcher.removeEventListener("stopped", onStopped);
- or -
deviceWatcher.onstopped = onStopped;
Public Custom Event Stopped As TypedEventHandler(Of DeviceWatcher, Object) 

事件类型

适用于