Export (0) Print
Expand All

NetworkChange.NetworkAvailabilityChanged Event

Occurs when the availability of the network changes.

Namespace: System.Net.NetworkInformation
Assembly: System (in system.dll)

public static event NetworkAvailabilityChangedEventHandler NetworkAvailabilityChanged
/** @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.
Not applicable.

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 Edition

The Microsoft .NET Framework 3.0 is supported on Windows Vista, Microsoft Windows XP SP2, and Windows Server 2003 SP1.

.NET Framework

Supported in: 3.0, 2.0

Community Additions

ADD
Show:
© 2014 Microsoft