DeviceWatcher.Removed Kejadian

Definisi

Peristiwa yang dinaikkan saat perangkat dihapus dari kumpulan perangkat yang dijumlahkan.

// Register
event_token Removed(TypedEventHandler<DeviceWatcher, DeviceInformationUpdate const&> const& handler) const;

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

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

Jenis Acara

Keterangan

Catatan

Aplikasi harus berlangganan semua peristiwa yang ditambahkan, dihapus, dan diperbarui untuk diberi tahu saat ada penambahan, penghapusan, atau pembaruan perangkat. Jika aplikasi hanya menangani peristiwa yang ditambahkan , aplikasi tidak akan menerima pembaruan jika perangkat ditambahkan ke sistem setelah enumerasi perangkat awal selesai.

Berlaku untuk

Lihat juga