Freigeben über


SysSpatialInputDeviceWatcher.Added Ereignis

Definition

Das Ereignis, das ausgelöst wird, wenn ein neues räumliches Eingabegerät hinzugefügt wird.

Wichtig

Diese API ist nur für Komponenten des Windows-Betriebssystems verfügbar. Aufrufe dieser APIs schlagen zur Laufzeit für alle anderen Prozesse fehl. Diese APIs können in zukünftigen Windows-Versionen geändert oder entfernt werden.

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

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

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

Ereignistyp

Gilt für: