更新时间:2022-10-17 16:58:22
模拟器总是返回 NetworkInterface.GetIsNetworkAvailable()
为真,即使你模拟网络条件有没有网络。
The emulator always returns NetworkInterface.GetIsNetworkAvailable()
as true, even if you emulate network conditions as having no network.
我面对这个问题,我和唯一的出路真正测试这种行为是运行Windows手机将应用程序部署到物理设备进行测试与数据关闭。
I faced this problem myself and the only truly way of testing this behaviour is to deploy the application to a physical device running Windows Phone and test it with the data turned off.