Dela via


DnssdServiceWatcher.EnumerationCompleted Event

Definition

Event triggered when a DnssdServiceWatcher has finished enumerating available DNS Service Discovery (DNS-SD) service instances.

Note

DnssdServiceWatcher is not supported and may be altered or unavailable in the future. Instead, use the 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) 

Event Type

Applies to