DatagramSocketInformation.RemotePort DatagramSocketInformation.RemotePort DatagramSocketInformation.RemotePort DatagramSocketInformation.RemotePort DatagramSocketInformation.RemotePort Property

Definition

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

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

Property Value

string string string

The UDP port number of the remote network destination.

Additional features and requirements

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.

See also