NetworkChange.NetworkAvailabilityChanged Event

 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

Occurs when the availability of the network changes.

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

public static event NetworkAvailabilityChangedEventHandler NetworkAvailabilityChanged

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.

.NET Framework
Available since 2.0
Return to top
Show: