Dela via


DeviceWatcher.EnumerationCompleted Event

Definition

Event that is raised when the enumeration of devices completes.

// Register
event_token EnumerationCompleted(TypedEventHandler<DeviceWatcher, IInspectable const&> const& handler) const;

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

// Revoke with event_revoker
DeviceWatcher::EnumerationCompleted_revoker EnumerationCompleted(auto_revoke_t, TypedEventHandler<DeviceWatcher, IInspectable const&> const& handler) const;
public event TypedEventHandler<DeviceWatcher,object> EnumerationCompleted;
function onEnumerationCompleted(eventArgs) { /* Your code */ }
deviceWatcher.addEventListener("enumerationcompleted", onEnumerationCompleted);
deviceWatcher.removeEventListener("enumerationcompleted", onEnumerationCompleted);
- or -
deviceWatcher.onenumerationcompleted = onEnumerationCompleted;
Public Custom Event EnumerationCompleted As TypedEventHandler(Of DeviceWatcher, Object) 

Event Type

Applies to

See also