0 out of 1 rated this helpful - Rate this topic

DeviceNetworkInformation Class

Windows Phone

March 22, 2012

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.

  Name Description
Public property Static member CellularMobileOperator Gets the name of the cellular mobile operator.
Public property Static member IsCellularDataEnabled Gets a value that indicates whether the network is cellular data enabled.
Public property Static member IsCellularDataRoamingEnabled Gets a value that indicates whether the network allows data roaming.
Public property Static member IsNetworkAvailable Gets a value that indicates whether the network is available.
Public property Static member IsWiFiEnabled Gets a value that indicates whether the network is Wi-Fi enabled.
Top
  Name Description
Public method Static member ResolveHostNameAsync(DnsEndPoint, NameResolutionCallback, Object) Asynchronously resolves a host name on the first available network interface.
Public method Static member ResolveHostNameAsync(DnsEndPoint, NetworkInterfaceInfo, NameResolutionCallback, Object) Asynchronously resolves a host name on a specified network interface.
Top
  Name Description
Public event Static member NetworkAvailabilityChanged Occurs 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: 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.

Did you find this helpful?
(1500 characters remaining)