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) 

事件类型

适用于