windows phone - What does DeviceNetworkInformation.IsNetworkAvailable Do? -
I do not find that actually does DeviceNetworkInformation.IsNetworkAvailable
? Is it at the same time to check phone service and data service? I was hoping to see a property that you can call, it seems that everything is over.
As the Daily Dermanski said, if you are able to make calls etc., then you are not particularly , But in addition to DeviceNetworkInformation
you can use all the network interfaces connected to the phone, and in such a way that it has got a GSM or CDMA cellular connection.
An example that shows all the interfaces, which is currently connected to the phone:
NetworkInterfest Network Interface = New Network Interfer List (); Agarwal (Network InterfaceInfo Network Interface Information) {If (info.InterfaceType == NetworkInterfaceType.MobileBroadbandCdma) Debug. Wrightite ("On CDMA Network"); And if (info.InterfaceType == NetworkInterfaceType.MobileBroadbandGsm) debugs. Writite ("on GSM network"); And if (info.InterfaceType == NetworkInterfaceType.Ethernet) debugs. WrightLine ("Pc pass-through" at ethernet);); And if (info.InterfaceType == NetworkInterfaceType.None) debugs. WrititeLine ("No network interface is available"); Else if (info.InterfaceType == NetworkInterfaceType.Wireless80211) Debug.WriteLine ("802.11 on network (WiFi, Bluetooth etc)"); }
Comments
Post a Comment