DatagramSocketMessageReceivedEventArgs.LocalAddress | localAddress property

Gets the local IP address associated with a DatagramSocket when a message was received.

Syntax


public:
property HostName^ LocalAddress { 
   HostName^ get();
}

Property value

Type: HostName

The local IP address where the message was received by the DatagramSocket.

Remarks

The DatagramSocketMessageReceivedEventArgs.LocalAddress property gets the local IP address where a message was received on a DatagramSocket. A message received event can only occur after a successful connect or bind operation on the DatagramSocket.

Requirements (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

ID_CAP_NETWORKING [Windows Phone]

Requirements (operating system)

Minimum supported client

Windows 8

Minimum supported server

Windows Server 2012

Minimum supported phone

Windows Phone 8

Namespace

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

Metadata

Windows.winmd

Capabilities

ID_CAP_NETWORKING [Windows Phone]

See also

BindServiceNameAsync
ConnectAsync
DatagramSocket
DatagramSocketInformation.LocalAddress
DatagramSocketInformation.LocalPort
DatagramSocketInformation.RemoteAddress
DatagramSocketInformation.RemotePort
DatagramSocketMessageReceivedEventArgs
DatagramSocketMessageReceivedEventArgs.RemoteAddress
DatagramSocketMessageReceivedEventArgs.RemotePort
HostName

 

 

Show:
© 2015 Microsoft