Assembly: System (in system.dll)
/** @event */ public static void add_NetworkAvailabilityChanged (NetworkAvailabilityChangedEventHandler value) /** @event */ public static void remove_NetworkAvailabilityChanged (NetworkAvailabilityChangedEventHandler value)
In JScript, you can handle the events defined by a class, but you cannot define your own.
The NetworkChange class raises NetworkAvailabilityChanged 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 NetworkAvailabilityChanged event occurs, you must associate the method with a NetworkAvailabilityChangedEventHandler delegate, and add this delegate to this event.
The NetworkAvailabilityChanged event is supported on Windows 2000 and later.
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 EditionThe Microsoft .NET Framework 3.0 is supported on Windows Vista, Microsoft Windows XP SP2, and Windows Server 2003 SP1.