PhoneLineWatcher.LineRemoved 事件

定义

PhoneLineWatcher 实例检测到从设备中删除了电话线路时发生。

// 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) 

事件类型

TypedEventHandler<PhoneLineWatcher,PhoneLineWatcherEventArgs>

Windows 要求

应用功能
phoneCallHistory phoneCallHistorySystem

注解

通常,无法删除手机网络线路。 删除 VoIP 行时,更有可能发生此事件,这通常是在卸载关联的应用程序时发生的。

适用于