Share via


PnpObjectWatcher.Stopped Evento

Definizione

Importante

Non è più consigliabile usare i tipi nello spazio dei nomi Windows.Devices.Enumeration.Pnp . I tipi nello spazio dei nomi Windows.Devices.Enumeration implementano invece un superset moderno e gestito meglio delle funzionalità di Windows.Devices.Enumeration.Pnp.

L'alternativa a PnpObjectType è l'enumerazione Windows.Devices.Enumeration.DeviceInformationKind , che è possibile passare come parametro alle API Windows.Devices.Enumeration . Ad esempio, anziché usare PnpObjectType quando crei un PnpObjectWatcher, usa DeviceInformationKind quando crei un DeviceWatcher.

Si verifica quando PnpObjectWatcher ha interrotto il monitoraggio delle modifiche apportate alla raccolta di oggetti dispositivo Pnp.

// Register
event_token Stopped(TypedEventHandler<PnpObjectWatcher, IInspectable const&> const& handler) const;

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

// Revoke with event_revoker
PnpObjectWatcher::Stopped_revoker Stopped(auto_revoke_t, TypedEventHandler<PnpObjectWatcher, IInspectable const&> const& handler) const;
public event TypedEventHandler<PnpObjectWatcher,object> Stopped;
function onStopped(eventArgs) { /* Your code */ }
pnpObjectWatcher.addEventListener("stopped", onStopped);
pnpObjectWatcher.removeEventListener("stopped", onStopped);
- or -
pnpObjectWatcher.onstopped = onStopped;
Public Custom Event Stopped As TypedEventHandler(Of PnpObjectWatcher, Object) 

Tipo evento

Si applica a