Share via


PhoneLineWatcher.LineRemoved Event

Definition

Occurs when the PhoneLineWatcher instance detects that a phone line has been removed from the device.

// Register
event_token LineRemoved(TypedEventHandler<PhoneLineWatcher, PhoneLineWatcherEventArgs const&> const& handler) const;

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

// Revoke with event_revoker
PhoneLineWatcher::LineRemoved_revoker LineRemoved(auto_revoke_t, TypedEventHandler<PhoneLineWatcher, PhoneLineWatcherEventArgs const&> const& handler) const;
public event TypedEventHandler<PhoneLineWatcher,PhoneLineWatcherEventArgs> LineRemoved;
function onLineRemoved(eventArgs) { /* Your code */ }
phoneLineWatcher.addEventListener("lineremoved", onLineRemoved);
phoneLineWatcher.removeEventListener("lineremoved", onLineRemoved);
- or -
phoneLineWatcher.onlineremoved = onLineRemoved;
Public Custom Event LineRemoved As TypedEventHandler(Of PhoneLineWatcher, PhoneLineWatcherEventArgs) 

Event Type

Windows requirements

App capabilities
phoneCallHistory phoneCallHistorySystem

Remarks

In general, cellular lines can never be removed. This event is more likely to occur when a VoIP line is removed, which typically happens when the associated applications is uninstalled.

Applies to