Aracılığıyla paylaş


System.Net.NetworkInformation Namespace

Microsoft Silverlight will reach end of support after October 2021. Learn more.

The System.Net.NetworkInformation namespace provides access to information on network availability and notification of address changes for the local computer.

This namespace is used to enable basic detection of changes in network state, such as address or interface state changes. Applications can keep track of when to get application data and assets from the network or from a local cache and can decide if they should make remote network calls. This helps enable offline Silverlight applications.

Classes

  Class Description
Public class NetworkChange Allows applications to receive notification when the Internet Protocol (IP) address of a network interface, also called a network card or adapter, changes.
Public class NetworkInterface Provides availability information for a network interface.

Delegates

  Delegate Description
Public delegate NetworkAddressChangedEventHandler References one or more methods to be called when the address of a network interface changes.