DnssdServiceInstance(String, HostName, UInt16) Constructor
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Creates a new DnssdServiceInstance object with the specified instance name, host name, and port.
public:
DnssdServiceInstance(Platform::String ^ dnssdServiceInstanceName, HostName ^ hostName, unsigned short port);
DnssdServiceInstance(winrt::hstring const& dnssdServiceInstanceName, HostName const& hostName, uint16_t const& port);
public DnssdServiceInstance(string dnssdServiceInstanceName, HostName hostName, ushort port);
function DnssdServiceInstance(dnssdServiceInstanceName, hostName, port)
Public Sub New (dnssdServiceInstanceName As String, hostName As HostName, port As UShort)
Parameters
- dnssdServiceInstanceName
-
String
Platform::String
winrt::hstring
The service instance name for the service instance being created.
- hostName
- HostName
The hostname for the service instance being created.
- port
-
UInt16
unsigned short
uint16_t
The port number for the service instance being created.