DnssdServiceWatcher
DnssdServiceWatcher
DnssdServiceWatcher
DnssdServiceWatcher
Class
Definition
Maintains a collection of 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.
public : sealed class DnssdServiceWatcher : IDnssdServiceWatcherpublic sealed class DnssdServiceWatcher : IDnssdServiceWatcherPublic NotInheritable Class DnssdServiceWatcher Implements IDnssdServiceWatcher// You can use this class in JavaScript.
- Attributes
| Device family |
Windows 10 (introduced v10.0.10240.0)
|
| API contract |
Windows.Foundation.UniversalApiContract (introduced v1)
|
Properties
Status Status Status Status
Gets the current status of the DnssdServiceWatcherStatus.
Note
DnssdServiceWatcher is not supported and may be altered or unavailable in the future. Instead, use the Windows.Devices.Enumeration API.
public : DnssdServiceWatcherStatus Status { get; }public DnssdServiceWatcherStatus Status { get; }Public ReadOnly Property Status As DnssdServiceWatcherStatus// You can use this property in JavaScript.
- Value
- DnssdServiceWatcherStatus DnssdServiceWatcherStatus DnssdServiceWatcherStatus DnssdServiceWatcherStatus
Value describing the current status of the watcher.
Methods
Start() Start() Start() Start()
Starts an enumeration of the network for 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.
public : void Start()public void Start()Public Function Start() As void// You can use this method in JavaScript.
Stop() Stop() Stop() Stop()
Stops an in-progress enumeration of 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.
public : void Stop()public void Stop()Public Function Stop() As void// You can use this method in JavaScript.
Events
Added Added Added Added
Event that is triggered when a DnssdServiceWatcher has added a DNS Service Discovery (DNS-SD) instance to its collection of available service instances.
Note
DnssdServiceWatcher is not supported and may be altered or unavailable in the future. Instead, use the Windows.Devices.Enumeration API.
public : event TypedEventHandler Added<DnssdServiceWatcher, DnssdServiceInstance>public event TypedEventHandler Added<DnssdServiceWatcher, DnssdServiceInstance>Public Event Added<DnssdServiceWatcher, DnssdServiceInstance>// You can use this event in JavaScript.
EnumerationCompleted EnumerationCompleted EnumerationCompleted EnumerationCompleted
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.
public : event TypedEventHandler EnumerationCompleted<DnssdServiceWatcher, object>public event TypedEventHandler EnumerationCompleted<DnssdServiceWatcher, object>Public Event EnumerationCompleted<DnssdServiceWatcher, object>// You can use this event in JavaScript.
Stopped Stopped Stopped Stopped
Event triggered when an in-progress enumeration has been stopped.
Note
DnssdServiceWatcher is not supported and may be altered or unavailable in the future. Instead, use the Windows.Devices.Enumeration API.
public : event TypedEventHandler Stopped<DnssdServiceWatcher, object>public event TypedEventHandler Stopped<DnssdServiceWatcher, object>Public Event Stopped<DnssdServiceWatcher, object>// You can use this event in JavaScript.