SysSpatialInputDeviceWatcher.Removed 事件
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
移除空間輸入裝置時所引發的事件。
重要
此 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)