DatagramSocketInformation.RemotePort Property

Definition

The UDP port number of the remote network destination associated with a DatagramSocket object.

public:
 property Platform::String ^ RemotePort { Platform::String ^ get(); };
winrt::hstring RemotePort();
public string RemotePort { get; }
var string = datagramSocketInformation.remotePort;
Public ReadOnly Property RemotePort As String

Property Value

String

Platform::String

winrt::hstring

The UDP port number of the remote network destination.

Windows requirements

App capabilities
ID_CAP_NETWORKING [Windows Phone]

Remarks

The RemotePort property represents the UDP port number for the remote network destination associated with a DatagramSocket object.

An app can set the remote hostname or IP address and remote service name or UDP port number to use by calling the ConnectAsync or GetOutputStreamAsync method on the DatagramSocket. The connect operation will bind the socket to a specific remote IP address and remote UDP port number. The RemotePort property is the UDP port number the remote service name resolved to.

Applies to

See also