DeviceNetworkInformation.IsNetworkAvailable
// Summary:
// Gets a value that indicates whether the network is available.
//
// Returns:
// true if there is at least one network interface available; otherwise, false.
public static bool IsNetworkAvailable { get; }
NetworkInterface.GetIsNetworkAvailable()
// Summary:
// Indicates whether any network connection is available.
//
// Returns:
// true if a network connection is available; otherwise, false.
[SecuritySafeCritical]
public static bool GetIsNetworkAvailable();
Are these identical?
Microsoft wants you to use
DeviceNetworkInformation.IsNetworkAvailableNetworkInterfaceis inSystem.Netwhere asDeviceNetworkInformationis inMicrosoft.Phone.Net.NetworkInformation.The
DeviceNetworkInformation.IsNetworkAvailablemight map toNetworkInterface.GetIsNetworkAvailable()internally, but you should always useDeviceNetworkInformation.IsNetworkAvailablebecause it’s made for the phone (and have a cleaner API).And as pointed out by Matthieu,
DeviceNetworkInformation.IsNetworkAvailableis apparently new in 7.1 (Mango).