NetworkAddressChangedEventHandler NetworkAddressChangedEventHandler NetworkAddressChangedEventHandler NetworkAddressChangedEventHandler Delegate

Definition

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

public delegate void NetworkAddressChangedEventHandler(System::Object ^ sender, EventArgs ^ e);
public delegate void NetworkAddressChangedEventHandler(object sender, EventArgs e);
type NetworkAddressChangedEventHandler = delegate of obj * EventArgs -> unit
Public Delegate Sub NetworkAddressChangedEventHandler(sender As Object, e As EventArgs)

Parameters

sender
Object Object Object Object

The source of the event.

e
EventArgs EventArgs EventArgs EventArgs

An EventArgs object that contains data about the event.

Inheritance
NetworkAddressChangedEventHandlerNetworkAddressChangedEventHandlerNetworkAddressChangedEventHandlerNetworkAddressChangedEventHandler

Examples

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

Remarks

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.

Applies to