System.Net.NetworkInformation.NetworkChange.NetworkAddressChanged Event

Occurs when the IP address of a network interface changes.

Syntax

public static event NetworkAddressChangedEventHandler NetworkAddressChanged

Remarks

The System.Net.NetworkInformation.NetworkChange class raises NetworkChange.NetworkAddressChanged events when the address of a network interface, also called a network card or adapter, changes.

To have a System.Net.NetworkInformation.NetworkChange object call an event-handling method when a NetworkChange.NetworkAddressChanged event occurs, you must associate the method with a System.Net.NetworkInformation.NetworkAddressChangedEventHandler delegate, and add this delegate to this event.

The NetworkChange.NetworkAddressChanged event is supported on Windows 2000 and later.

Requirements

Namespace: System.Net.NetworkInformation
Assembly: System (in System.dll)
Assembly Versions: 2.0.0.0, 4.0.0.0
Since: .NET 2.0