共用方式為


PhoneLineWatcher.EnumerationCompleted 事件

定義

發生於 PhoneLineWatcher 實例完成裝置上所有電話線路的列舉時。

// Register
event_token EnumerationCompleted(TypedEventHandler<PhoneLineWatcher, IInspectable const&> const& handler) const;

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

// Revoke with event_revoker
PhoneLineWatcher::EnumerationCompleted_revoker EnumerationCompleted(auto_revoke_t, TypedEventHandler<PhoneLineWatcher, IInspectable const&> const& handler) const;
public event TypedEventHandler<PhoneLineWatcher,object> EnumerationCompleted;
function onEnumerationCompleted(eventArgs) { /* Your code */ }
phoneLineWatcher.addEventListener("enumerationcompleted", onEnumerationCompleted);
phoneLineWatcher.removeEventListener("enumerationcompleted", onEnumerationCompleted);
- or -
phoneLineWatcher.onenumerationcompleted = onEnumerationCompleted;
Public Custom Event EnumerationCompleted As TypedEventHandler(Of PhoneLineWatcher, Object) 

事件類型

Windows 需求

應用程式功能
phoneCallHistory phoneCallHistorySystem

備註

您可以隨時將電話線新增、移除或更新至裝置。 這個事件只會指出在指定的時間點已完成電話線路的列舉。

此事件只會在每個 PhoneLineWatcher 實例產生一次。

適用於