DatagramSocketInformation DatagramSocketInformation DatagramSocketInformation DatagramSocketInformation DatagramSocketInformation Class

Definition

Provides socket information on a DatagramSocket object.

public : sealed class DatagramSocketInformation : IDatagramSocketInformation
struct winrt::Windows::Networking::Sockets::DatagramSocketInformation : IDatagramSocketInformation
public sealed class DatagramSocketInformation : IDatagramSocketInformation
Public NotInheritable Class DatagramSocketInformation Implements IDatagramSocketInformation
// This class does not provide a public constructor.
Attributes
Windows 10 requirements
Device family
Windows 10 (introduced v10.0.10240.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v1)
Capabilities
ID_CAP_NETWORKING [Windows Phone]

Remarks

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.

Properties

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