共用方式為


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) 

事件類型

Windows 需求

應用程式功能
phoneCallHistory phoneCallHistorySystem

備註

一般而言,永遠無法移除行動數據行。 拿掉 VoIP 行時,較可能發生此事件,這通常會在卸載相關聯的應用程式時發生。

適用於