DatagramSocketMessageReceivedEventArgs.LocalAddress Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Gets the local IP address associated with a DatagramSocket when a message was received.
public:
property HostName ^ LocalAddress { HostName ^ get(); };
HostName LocalAddress();
public HostName LocalAddress { get; }
var hostName = datagramSocketMessageReceivedEventArgs.localAddress;
Public ReadOnly Property LocalAddress As HostName
Property Value
The local IP address where the message was received by the DatagramSocket.
Windows requirements
App capabilities |
ID_CAP_NETWORKING [Windows Phone]
|
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.