DnssdServiceInstance(String, HostName, UInt16) Constructeur

Définition

Crée un objet DnssdServiceInstance avec le nom de instance, le nom d’hôte et le port spécifiés.

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)

Paramètres

dnssdServiceInstanceName
String

Platform::String

winrt::hstring

Nom instance du service pour le service instance en cours de création.

hostName
HostName

Le nom d’hôte du service instance en cours de création.

port
UInt16

unsigned short

uint16_t

Numéro de port du service instance en cours de création.

S’applique à