Windows Dev Center

DatagramSocketInformation class

Provides socket information on a DatagramSocket object.

Syntax


public ref class DatagramSocketInformation sealed 

Members

The DatagramSocketInformation class has these types of members:

Properties

The DatagramSocketInformation class has these properties.

PropertyAccess typeDescription

LocalAddress

Read-onlyThe local IP address associated with a DatagramSocket object.

LocalPort

Read-onlyThe local service name or UDP port number associated with a DatagramSocket.

RemoteAddress

Read-onlyThe IP address of the remote network destination associated with a DatagramSocket object.

RemotePort

Read-onlyThe UDP port number of the remote network destination associated with a DatagramSocket object.

 

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.

Requirements (Windows 10 device family)

Device family

Universal

API contract

Windows.Foundation.UniversalApiContract, introduced version 1.0

Namespace

Windows.Networking.Sockets
Windows::Networking::Sockets [C++]

Metadata

Windows.Foundation.UniversalApiContract.winmd

Capabilities

Requirements (Windows 8.x and Windows Phone 8.x)

Minimum supported client

Windows 8 [Windows Store apps, desktop apps]

Minimum supported server

Windows Server 2012 [Windows Store apps, desktop apps]

Minimum supported phone

Windows Phone 8

Namespace

Windows.Networking.Sockets
Windows::Networking::Sockets [C++]

Metadata

Windows.winmd

Capabilities

ID_CAP_NETWORKING [Windows Phone]

Attributes

[DualApiPartition()]
[MarshalingBehavior(Agile)]
[Version(0x06020000)]

See also

Other resources
How to use advanced socket controls (HTML)
How to use advanced socket controls (XAML)
Reference
DatagramSocket
DatagramSocket.Information
DatagramSocketControl
Object
Samples
DatagramSocket sample

 

 

Show:
© 2015 Microsoft