Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

DatagramSocketInformation class

Applies to Windows and Windows Phone

Provides socket information on a DatagramSocket object.

Syntax


var datagramSocketInformation = DatagramSocket.Information;

Attributes

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

Members

The DatagramSocketInformation class has these types of members:

Methods

The DatagramSocketInformation class inherits methods from the Object class (C#/VB/C++).

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

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

DLL

Windows.Networking.dll

Capabilities

ID_CAP_NETWORKING [Windows Phone]

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:
© 2014 Microsoft