积极答复者
wp8可以得到AP的mac地址吗?

问题
答案
-
你好,
在Windows Phone 8中,暂时还没有这样的API,建议到: http://visualstudio.uservoice.com/forums/121579-visual-studio 上去提一个Feature Request。另外我们也会通过内部途径上报给微软。
这里有一个变通方案:
public static void ShowNetworkInterfaces() { Microsoft.Phone.Net.NetworkInformation.NetworkInterfaceList InterfacesList = new Microsoft.Phone.Net.NetworkInformation.NetworkInterfaceList(); foreach (Microsoft.Phone.Net.NetworkInformation.NetworkInterfaceInfo specificInterface in InterfacesList) { if (specificInterface.InterfaceType == Microsoft.Phone.Net.NetworkInformation.NetworkInterfaceType.Wireless80211) { Console.WriteLine("This interface is a Wifi Interface :"); } Console.WriteLine("Bandwidth :" + specificInterface.Bandwidth); Console.WriteLine("Characteristics :" + specificInterface.Characteristics); Console.WriteLine("Description :" + specificInterface.Description); Console.WriteLine("InterfaceName :" + specificInterface.InterfaceName); Console.WriteLine("InterfaceType :" + specificInterface.InterfaceType); } }
你可以使用Description作为惟一的标识。具体信息请参考:NetworkInterfaceInfo Class
希望我的回复可以帮助你。
谢谢!
We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
Click HERE to participate the survey.- 已建议为答案 么么哒 2014年5月4日 9:33
- 已标记为答案 Leo (Apple) YangModerator 2014年5月5日 1:37
-
你好,
是这样的。只能获得周边WiFi信息,没有办法获得MAC地址。
谢谢!
We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
Click HERE to participate the survey.- 已标记为答案 suduan 2014年5月4日 9:46
全部回复
-
你好,
在Windows Phone 8中,暂时还没有这样的API,建议到: http://visualstudio.uservoice.com/forums/121579-visual-studio 上去提一个Feature Request。另外我们也会通过内部途径上报给微软。
这里有一个变通方案:
public static void ShowNetworkInterfaces() { Microsoft.Phone.Net.NetworkInformation.NetworkInterfaceList InterfacesList = new Microsoft.Phone.Net.NetworkInformation.NetworkInterfaceList(); foreach (Microsoft.Phone.Net.NetworkInformation.NetworkInterfaceInfo specificInterface in InterfacesList) { if (specificInterface.InterfaceType == Microsoft.Phone.Net.NetworkInformation.NetworkInterfaceType.Wireless80211) { Console.WriteLine("This interface is a Wifi Interface :"); } Console.WriteLine("Bandwidth :" + specificInterface.Bandwidth); Console.WriteLine("Characteristics :" + specificInterface.Characteristics); Console.WriteLine("Description :" + specificInterface.Description); Console.WriteLine("InterfaceName :" + specificInterface.InterfaceName); Console.WriteLine("InterfaceType :" + specificInterface.InterfaceType); } }
你可以使用Description作为惟一的标识。具体信息请参考:NetworkInterfaceInfo Class
希望我的回复可以帮助你。
谢谢!
We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
Click HERE to participate the survey.- 已建议为答案 么么哒 2014年5月4日 9:33
- 已标记为答案 Leo (Apple) YangModerator 2014年5月5日 1:37
-
你好,
是这样的。只能获得周边WiFi信息,没有办法获得MAC地址。
谢谢!
We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
Click HERE to participate the survey.- 已标记为答案 suduan 2014年5月4日 9:46