Share via


DnssdServiceInstance(String, HostName, UInt16) Constructor

Definition

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.

Applies to