NetworkAddressChangedEventHandler Delegate
Collapse the table of content
Expand the table of content

NetworkAddressChangedEventHandler Delegate

 

References one or more methods to be called when the address of a network interface changes.

Namespace:   System.Net.NetworkInformation
Assembly:  System (in System.dll)

public delegate void NetworkAddressChangedEventHandler(
	object sender,
	EventArgs e
)

Parameters

sender
Type: System.Object

The source of the event.

e
Type: System.EventArgs

An EventArgs object that contains data about the event.

This delegate handles NetworkAddressChanged events raised by the NetworkChange class. For detailed information on receiving notification for network interface address change events, see the NetworkChange class overview documentation.

The NetworkAddressChanged event is supported on Windows 2000 and later.

The following code example listens for address changes and displays the status of network interfaces when a NetworkAddressChanged event occurs.

Universal Windows Platform
Available since 4.5
.NET Framework
Available since 2.0
Portable Class Library
Supported in: portable .NET platforms
Silverlight
Available since 3.0
Windows Phone Silverlight
Available since 7.0
Windows Phone
Available since 8.1
Return to top
Show:
© 2016 Microsoft