共用方式為


SysSpatialInputDeviceWatcher.Removed 事件

定義

移除空間輸入裝置時所引發的事件。

重要

此 API 僅適用于 Windows 作業系統的元件。 所有其他進程在執行時間呼叫這些 API 將會失敗。 未來 Windows 版本中可能會修改或移除這些 API。

// Register
event_token Removed(TypedEventHandler<SysSpatialInputDeviceWatcher, SysSpatialInputDevice const&> const& handler) const;

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

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

事件類型

適用於