DnssdServiceInstanceCollection DnssdServiceInstanceCollection DnssdServiceInstanceCollection DnssdServiceInstanceCollection DnssdServiceInstanceCollection Class

Definition

A collection of DNS Service Discovery (DNS-SD) service instances.

Note

DnssdServiceInstanceCollection is not supported and may be altered or unavailable in the future. Instead, use the Windows.Devices.Enumeration API.

public : sealed class DnssdServiceInstanceCollection
struct winrt::Windows::Networking::ServiceDiscovery::Dnssd::DnssdServiceInstanceCollection
public sealed class DnssdServiceInstanceCollection
Public NotInheritable Class DnssdServiceInstanceCollection
// This class does not provide a public constructor.
Attributes

Windows 10 requirements

Device family
Windows 10 (introduced v10.0.10240.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v1)

Remarks

Your code does not create a DnssdServiceInstanceCollection directly. Instead, handle the DnssdServiceWatcher.EnumerationCompleted event. When that event is triggered, the second argument to the event handler is a pointer to a DnssdServiceInstanceCollection object that contains information about the discovered service instances.

Properties

Size Size Size Size Size

Gets the number of items in the collection

Note

DnssdServiceInstanceCollection is not supported and may be altered or unavailable in the future. Instead, use the Windows.Devices.Enumeration API.

Methods

First() First() First() First() First()

Gets an iterator that is initialized to refer to the first item in the instance collection.

Note

DnssdServiceInstanceCollection is not supported and may be altered or unavailable in the future. Instead, use the Windows.Devices.Enumeration API.

GetAt(UInt32) GetAt(UInt32) GetAt(UInt32) GetAt(UInt32) GetAt(UInt32)

Gets the DnssdServiceInstance at a given index into the DnssdServiceInstanceCollection.

Note

DnssdServiceInstanceCollection is not supported and may be altered or unavailable in the future. Instead, use the Windows.Devices.Enumeration API.

GetMany(UInt32, DnssdServiceInstance[]) GetMany(UInt32, DnssdServiceInstance[]) GetMany(UInt32, DnssdServiceInstance[]) GetMany(UInt32, DnssdServiceInstance[]) GetMany(UInt32, DnssdServiceInstance[])

Gets multiple DnssdServiceInstance objects from a DNS-SD service instance collection.

Note

DnssdServiceInstanceCollection is not supported and may be altered or unavailable in the future. Instead, use the Windows.Devices.Enumeration API.

IndexOf(DnssdServiceInstance, UInt32) IndexOf(DnssdServiceInstance, UInt32) IndexOf(DnssdServiceInstance, UInt32) IndexOf(DnssdServiceInstance, UInt32) IndexOf(DnssdServiceInstance, UInt32)

Gets a value indicating whether a given DnssdServiceInstance is at the specified index in this service instance collection.

Note

DnssdServiceInstanceCollection is not supported and may be altered or unavailable in the future. Instead, use the Windows.Devices.Enumeration API.

See also