Table of Contents

Class NetworkChange

Namespace
System.Net.NetworkInformation
Assembly
System.Net.dll

Contains information about changes in the availability and address of the network.

public static class NetworkChange
Inheritance
NetworkChange
Inherited Members

Events

NetworkAPStationChanged

Event occurs when a station connects or disconnects from Soft Access Point.

public static event NetworkAPStationChangedEventHandler NetworkAPStationChanged

Event Type

NetworkAPStationChangedEventHandler

Remarks

The NetworkChange class raises the NetworkAPStationChanged events when a client connects or disconnects from the Soft AP.

To have a NetworkChange object call an event-handling method when a NetworkAPStationChanged event occurs, you must associate the method with a NetworkAPStationChangedEventHandler delegate, and add this delegate to this event.

NetworkAddressChanged

Event occurs when the IP address of a network interface changes.

public static event NetworkAddressChangedEventHandler NetworkAddressChanged

Event Type

NetworkAddressChangedEventHandler

Remarks

The NetworkChange class raises NetworkAddressChanged events when the address of a network interface, also called a network card or adapter, changes.

To have a NetworkChange object call an event-handling method when a NetworkAddressChanged event occurs, you must associate the method with a NetworkAddressChangedEventHandler delegate, and add this delegate to this event.

NetworkAvailabilityChanged

Event occurs when the availability of the network changes.

public static event NetworkAvailabilityChangedEventHandler NetworkAvailabilityChanged

Event Type

NetworkAvailabilityChangedEventHandler

Remarks

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.