NetworkChange.NetworkAvailabilityChanged Event
Assembly: System (in system.dll)
public: static event NetworkAvailabilityChangedEventHandler^ NetworkAvailabilityChanged { void add (NetworkAvailabilityChangedEventHandler^ value); void remove (NetworkAvailabilityChangedEventHandler^ value); }
/** @event */ public static void add_NetworkAvailabilityChanged (NetworkAvailabilityChangedEventHandler value) /** @event */ public static void remove_NetworkAvailabilityChanged (NetworkAvailabilityChangedEventHandler value)
JScript supports the use of events, but not the declaration of new ones.
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.
Windows 98, Windows 2000 SP4, Windows Millennium Edition, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition
The .NET Framework does not support all versions of every platform. For a list of the supported versions, see System Requirements.