DatagramSocketInformation DatagramSocketInformation DatagramSocketInformation DatagramSocketInformation Class

Provides socket information on a DatagramSocket object.

Syntax

Declaration

public sealed class DatagramSocketInformationpublic sealed class DatagramSocketInformationPublic NotInheritable Class DatagramSocketInformation

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 Information property provides access to the associated DatagramSocketInformation object.

Properties summary

The local IP address associated with a DatagramSocket object.

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

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

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

Properties

Device family

Windows 10 (introduced v10.0.10240.0)

API contract

Windows.Foundation.UniversalApiContract (introduced v1)

Capabilities

ID_CAP_NETWORKING [Windows Phone]

Attributes

Windows.Foundation.Metadata.MarshalingBehaviorAttribute
Windows.Foundation.Metadata.DualApiPartitionAttribute
Windows.Foundation.Metadata.ContractVersionAttribute

Details

Assembly

Windows.Networking.Sockets.dll