DeviceNetworkInformation Class
Windows Phone
March 22, 2012
Contains network information for a specific Windows Phone device.
Namespace:
Microsoft.Phone.Net.NetworkInformation
Assembly: Microsoft.Phone (in Microsoft.Phone.dll)
The DeviceNetworkInformation type exposes the following members.
| Name | Description | |
|---|---|---|
|
CellularMobileOperator | Gets the name of the cellular mobile operator. |
|
IsCellularDataEnabled | Gets a value that indicates whether the network is cellular data enabled. |
|
IsCellularDataRoamingEnabled | Gets a value that indicates whether the network allows data roaming. |
|
IsNetworkAvailable | Gets a value that indicates whether the network is available. |
|
IsWiFiEnabled | Gets a value that indicates whether the network is Wi-Fi enabled. |
| Name | Description | |
|---|---|---|
|
ResolveHostNameAsync(DnsEndPoint, NameResolutionCallback, Object) | Asynchronously resolves a host name on the first available network interface. |
|
ResolveHostNameAsync(DnsEndPoint, NetworkInterfaceInfo, NameResolutionCallback, Object) | Asynchronously resolves a host name on a specified network interface. |
| Name | Description | |
|---|---|---|
|
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. |