Occurs when the availability of the network changes.
Assembly: System (in System.dll)
The NetworkChange class raises events when the availability of the network changes. The network is available when at least one network interface is marked "up" and is not a tunnel or loopback interface.
To have a NetworkChange object call an event-handling method when a event occurs, you must associate the method with a NetworkAvailabilityChangedEventHandler delegate, and add this delegate to this event.
Theevent is supported on Windows 2000 and later.
Available since 2.0