DeviceWatcher.Updated Kejadian

Definisi

Peristiwa yang dinaikkan saat perangkat diperbarui dalam kumpulan perangkat yang dijumlahkan.

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

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

// Revoke with event_revoker
DeviceWatcher::Updated_revoker Updated(auto_revoke_t, TypedEventHandler<DeviceWatcher, DeviceInformationUpdate const&> const& handler) const;
public event TypedEventHandler<DeviceWatcher,DeviceInformationUpdate> Updated;
function onUpdated(eventArgs) { /* Your code */ }
deviceWatcher.addEventListener("updated", onUpdated);
deviceWatcher.removeEventListener("updated", onUpdated);
- or -
deviceWatcher.onupdated = onUpdated;
Public Custom Event Updated 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