共用方式為


PhoneLineWatcher.LineUpdated 事件

定義

PhoneLineWatcher 實例偵測到裝置上已更新電話線時發生。

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

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

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

事件類型

Windows 需求

應用程式功能
phoneCallHistory phoneCallHistorySystem

備註

更新電話線路的情況包括電話號碼的元數據變更時,例如語音信箱計數或註冊狀態。

適用於