NetworkAdapter信息访问 [英] NetworkAdapter Info Access
问题描述
托管代码或本机代码是否有办法访问DNS,DNS后缀?我知道操作系统可以访问这个,但是有没有办法可以从代码访问?
Wi-Fi网络,编辑网络。
我从Windows知道它是在IPInterfaceProperties类中找到的,但在Windows手机中不存在。
Mike
如果要在应用程序中显示IPAddress,可以参考以下链接
http://developer.nokia.com/Community/Wiki/How_to_get_the_device_IP_addresses_on_Windows_Phone
我不认为您可以获得图像中的所有信息。
您可以尝试使用ConnectionSettingsType作为WiFi的ConnectionSettingsTask从您的应用程序打开WiFi设置屏幕。
<前class ="prettyprint"> ConnectionSettingsTask connectionSettingsTask = new ConnectionSettingsTask();
connectionSettingsTask.ConnectionSettingsType = ConnectionSettingsType.WiFi;
connectionSettingsTask.Show();
Is there a way in managed or native code to access the DNS , DNS suffix? I know that the OS has access to this, but is there a way that it can be access from code?
Wi-Fi networking, Edit network.
I know from windows it is found in the IPInterfaceProperties class, but this does not exists in windows phone.
Mike
If you want to display IPAddress in your application you can refer following link
http://developer.nokia.com/Community/Wiki/How_to_get_the_device_IP_addresses_on_Windows_Phone
I don't think you can get all the information you have in your image.
Probably you can try ConnectionSettingsTask with ConnectionSettingsType as WiFi to open WiFi settings screen from your app.
ConnectionSettingsTask connectionSettingsTask = new ConnectionSettingsTask(); connectionSettingsTask.ConnectionSettingsType = ConnectionSettingsType.WiFi; connectionSettingsTask.Show();
这篇关于NetworkAdapter信息访问的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!