PhoneLineWatcher.LineAdded Event
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Occurs when the PhoneLineWatcher instance detects a new phone line on the device.
// Register
event_token LineAdded(TypedEventHandler<PhoneLineWatcher, PhoneLineWatcherEventArgs const&> const& handler) const;
// Revoke with event_token
void LineAdded(event_token const* cookie) const;
// Revoke with event_revoker
PhoneLineWatcher::LineAdded_revoker LineAdded(auto_revoke_t, TypedEventHandler<PhoneLineWatcher, PhoneLineWatcherEventArgs const&> const& handler) const;
public event TypedEventHandler<PhoneLineWatcher,PhoneLineWatcherEventArgs> LineAdded;
function onLineAdded(eventArgs) { /* Your code */ }
phoneLineWatcher.addEventListener("lineadded", onLineAdded);
phoneLineWatcher.removeEventListener("lineadded", onLineAdded);
- or -
phoneLineWatcher.onlineadded = onLineAdded;
Public Custom Event LineAdded As TypedEventHandler(Of PhoneLineWatcher, PhoneLineWatcherEventArgs)
Event Type
Windows requirements
App capabilities |
phoneCallHistory
phoneCallHistorySystem
|