![](/img/trans.png)
[英]How to check social networking authentication in Windows Phone 8 Application?
[英]Windows Store Application Networking
我創建了一個Windows存儲應用程序,該應用程序使用Windows.Networking.Connectivity;
打印出網絡信息Windows.Networking.Connectivity;
名稱空間。
盡管應用程序正在運行且正常運行,但是MegabytesUsed方法返回“ Not Defined
”。 為什么是這樣。
如果您在本地計算機上運行該應用程序,並且已與以太網連接,則不要使用DataPlan。
如果要使用Simulator調試打開並啟用“使用模擬的網絡屬性”,然后更改“數據限制狀態標志”,您將看到結果。
ConnectionProfile profile = NetworkInformation.GetInternetConnectionProfile();
DataPlanStatus dps = profile .GetDataPlanStatus() ;
textBlock.Text = dps.DataPlanUsage.MegabytesUsed.ToString();
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.