DnssdServiceInstance(String, HostName, UInt16) 建構函式
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
使用指定的實例名稱、主機名稱和埠,建立新的 DnssdServiceInstance 物件。
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)
參數
- dnssdServiceInstanceName
-
String
Platform::String
winrt::hstring
正在建立之服務實例的服務實例名稱。
- hostName
- HostName
正在建立之服務實例的主機名稱。
- port
-
UInt16
unsigned short
uint16_t
正在建立之服務實例的埠號碼。