Export (0) Print
Expand All

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
)
/** @delegate */
public delegate void NetworkAddressChangedEventHandler (
	Object sender, 
	EventArgs e
)
Not applicable.

Parameters

sender

The source of the event.

e

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.

Windows 98, Windows Server 2000 SP4, Windows Millennium Edition, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

The Microsoft .NET Framework 3.0 is supported on Windows Vista, Microsoft Windows XP SP2, and Windows Server 2003 SP1.

.NET Framework

Supported in: 3.0, 2.0

Community Additions

ADD
Show:
© 2014 Microsoft