DatagramSocketInformation DatagramSocketInformation DatagramSocketInformation DatagramSocketInformation DatagramSocketInformation Class


Provides socket information on a DatagramSocket object.

public : sealed class DatagramSocketInformation
struct winrt::Windows::Networking::Sockets::DatagramSocketInformation
public sealed class DatagramSocketInformation
Public NotInheritable Class DatagramSocketInformation
// This class does not provide a public constructor.

Windows 10 requirements

Device family
Windows 10 (introduced v10.0.10240.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v1)


The DatagramSocketInformation class provides information about a DatagramSocket. This class retrieves information on a DatagramSocket and can be called any time after the DatagramSocket has been created.

A DatagramSocketInformation object is automatically created with the parent DatagramSocket object . The DatagramSocket.Information property provides access to the associated DatagramSocketInformation object.


LocalAddress LocalAddress LocalAddress LocalAddress LocalAddress

The local IP address associated with a DatagramSocket object.

LocalPort LocalPort LocalPort LocalPort LocalPort

The local service name or UDP port number associated with a DatagramSocket.

RemoteAddress RemoteAddress RemoteAddress RemoteAddress RemoteAddress

The IP address of the remote network destination associated with a DatagramSocket object.

RemotePort RemotePort RemotePort RemotePort RemotePort

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

See also