共用方式為


NDTCPMessenger(String, UInt32) 建構函式

定義

建立 NDTCPMessenger 類別的新實例。

public:
 NDTCPMessenger(Platform::String ^ remoteHostName, unsigned int remoteHostPort);
 NDTCPMessenger(winrt::hstring const& remoteHostName, uint32_t const& remoteHostPort);
/// [Windows.Foundation.Metadata.Deprecated("INDTCPMessengerFactory is deprecated and might not work on all platforms. For more info, see MSDN.", Windows.Foundation.Metadata.DeprecationType.Deprecate, 196608, "Windows.Foundation.UniversalApiContract")]
 NDTCPMessenger(winrt::hstring const& remoteHostName, uint32_t const& remoteHostPort);
public NDTCPMessenger(string remoteHostName, uint remoteHostPort);
[Windows.Foundation.Metadata.Deprecated("INDTCPMessengerFactory is deprecated and might not work on all platforms. For more info, see MSDN.", Windows.Foundation.Metadata.DeprecationType.Deprecate, 196608, "Windows.Foundation.UniversalApiContract")]
public NDTCPMessenger(string remoteHostName, uint remoteHostPort);
function NDTCPMessenger(remoteHostName, remoteHostPort)
Public Sub New (remoteHostName As String, remoteHostPort As UInteger)

參數

remoteHostName
String

Platform::String

winrt::hstring

將接收訊息之遠端主機的 IP 位址。 格式為點十進位標記法中的 IPv4 位址,或是冒號十六進位標記法中的 IPv6 位址。

remoteHostPort
UInt32

unsigned int

uint32_t

將接收訊息之遠端主機的 TCP 埠。

屬性

適用於