Share via


PhoneLineWatcher.EnumerationCompleted Event

Definition

Occurs when the PhoneLineWatcher instance completes an enumeration of all the phone lines on the device.

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

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

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

Event Type

Windows requirements

App capabilities
phoneCallHistory phoneCallHistorySystem

Remarks

Phone lines can be added, removed, or updated to a device at any time. This event only indicates that an enumeration of the phone lines has been completed at a given point in time.

This event is only generated once per PhoneLineWatcher instance.

Applies to