PhoneLineWatcher.LineAdded 事件
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
当 PhoneLineWatcher 实例检测到设备上的新电话线时发生。
// 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)
事件类型
Windows 要求
应用功能 |
phoneCallHistory
phoneCallHistorySystem
|