共用方式為


DnssdServiceWatcher.EnumerationCompleted 事件

定義

當 DnssdServiceWatcher完成列舉可用的 DNS 服務探索 (DNS-SD) 服務實例時所觸發的事件。

注意

不支援 DnssdServiceWatcher,未來可能會改變或無法使用。 請改用 Windows.Devices.Enumeration API。

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

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

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

事件類型

適用於