DatagramSocketInformation Class

Definition

Provides socket information on a DatagramSocket object.

public ref class DatagramSocketInformation sealed
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 65536)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
class DatagramSocketInformation final
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 65536)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
public sealed class DatagramSocketInformation
Public NotInheritable Class DatagramSocketInformation
Inheritance
Object Platform::Object IInspectable DatagramSocketInformation
Attributes

Windows requirements

Device family
Windows 10 (introduced in 10.0.10240.0)
API contract
Windows.Foundation.UniversalApiContract (introduced in v1.0)
App 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

The local IP address associated with a DatagramSocket object.

LocalPort

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

RemoteAddress

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

RemotePort

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

Applies to

See also