Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

DeviceNetworkInformation Class

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

Contains network information for a specific Windows Phone device.

System.Object
  Microsoft.Phone.Net.NetworkInformation.DeviceNetworkInformation

Namespace:  Microsoft.Phone.Net.NetworkInformation
Assembly:  Microsoft.Phone (in Microsoft.Phone.dll)

public static class DeviceNetworkInformation

The DeviceNetworkInformation type exposes the following members.

  NameDescription
Public propertyStatic memberCellularMobileOperatorGets the name of the currently registered or connected mobile operator.
Public propertyStatic memberIsCellularDataEnabledGets a value that indicates whether the network is cellular data enabled.
Public propertyStatic memberIsCellularDataRoamingEnabledGets a value that indicates whether the network allows data roaming.
Public propertyStatic memberIsNetworkAvailableGets a value that indicates whether the network is available.
Public propertyStatic memberIsWiFiEnabledGets a value that indicates whether the network is Wi-Fi enabled.
Top

  NameDescription
Public methodStatic memberResolveHostNameAsync(DnsEndPoint, NameResolutionCallback, Object)Asynchronously resolves a host name on the first available network interface.
Public methodStatic memberResolveHostNameAsync(DnsEndPoint, NetworkInterfaceInfo, NameResolutionCallback, Object)Asynchronously resolves a host name on a specified network interface.
Top

  NameDescription
Public eventStatic memberNetworkAvailabilityChangedOccurs when the availability of the network changes. For example, an application can register for this event and get a notification if a WiFi network becomes available. The application could then adjust its behavior to take advantage of this high bandwidth network interface.
Top

The DeviceNetworkInformation class contains properties that identify the network functionality that is available on the device, methods to resolve a host name, and an event that occurs when the network status of the device changes.

Windows Phone OS

Supported in: 8.1, 8.0, 7.1

Windows Phone

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Show: