Bagikan melalui


SysSpatialInputDeviceWatcher.Added Kejadian

Definisi

Peristiwa yang dinaikkan saat perangkat input spasial baru ditambahkan.

Penting

API ini hanya tersedia untuk komponen sistem operasi Windows. Panggilan ke API ini akan gagal pada runtime untuk semua proses lainnya. API ini dapat dimodifikasi atau dihapus dalam rilis Windows mendatang.

// 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) 

Jenis Acara

Berlaku untuk