WP7判断网络状态

记录备用

1 using System.Net.NetworkInformation;
2 bool bNetOK = NetworkInterface.GetIsNetworkAvailable();
 
 
 
补充
bool IsExistNet()

{

 if(NetworkInterface.GetIsNetworkAvailable())

{

 if(NetworkInterface.NetworkInterfaceType==NetworkInterfaceType.None)

{return false;}

return true;                

        return false; 

原文地址:https://www.cnblogs.com/sun8134/p/2050719.html