System.Net.NetworkInformation.NetworkChange Class

Allows applications to receive notification when the Internet Protocol (IP) address of a network interface, also called a network card or adapter, changes.

See Also: NetworkChange Members


public sealed class NetworkChange


The System.Net.NetworkInformation.NetworkChange class provides address change notification by raising NetworkChange.NetworkAddressChanged events. An interface address can change for many reasons, such as a disconnected network cable, moving out of range of a wireless Local Area Network, or hardware failure.

To receive notification, you must identify your application's event handlers, which are one or more methods that perform your application-specific tasks each time the event is raised. To have a System.Net.NetworkInformation.NetworkChange object call your event-handling methods when a NetworkChange.NetworkAddressChanged event occurs, you must associate the methods with a System.Net.NetworkInformation.NetworkAddressChangedEventHandler delegate, and add this delegate to the event.


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