API Reference
Class
DnsServiceDiscovery
Represents a single service entry discovered via DNS Service Discovery.
Inheritance
- Object
- DnsServiceDiscovery
Remarks
This type models the data returned when browsing services using the _services._dns-sd._udp entry point.
Constructors
public DnsServiceDiscovery() #Inherited Methods
Properties
public String ServiceName { get; set; } #Gets or sets the full service name returned in the PTR record, for example _http._tcp.example.com.
public String Target { get; set; } #Gets or sets the target host of the service extracted from the SRV record.
public Int32 Port { get; set; } #Gets or sets the port number of the service.
public Int32 Priority { get; set; } #Gets or sets the SRV record priority for this service instance.
public Int32 Weight { get; set; } #Gets or sets the SRV record weight for this service instance.
public Dictionary<String, String> Metadata { get; set; } #Gets or sets additional TXT metadata associated with the service, if any. The dictionary key is the TXT record key and the value is its content.