Collapse the table of content
Expand the table of content

System.Net.NetworkInformation Namespace

[ This article is for Windows Phone 8 developers. If you’re developing for Windows 10, see the latest documentation. ]

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 Windows Phone applications.

Public classNetworkChangeAllows applications to receive notification when the Internet Protocol (IP) address of a network interface, also called a network card or adapter, changes.
Public classNetworkInterfaceProvides availability information for a network interface.

Public delegateNetworkAddressChangedEventHandlerReferences one or more methods to be called when the address of a network interface changes.

© 2017 Microsoft