且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

NetworkAdapter信息访问

更新时间:2023-12-06 17:28:46

如果要在应用程序中显示IPAddress,可以参考以下链接


http://developer.nokia.com/Community/Wiki/How_to_get_the_device_IP_addresses_on_Windows_Phone


我不认为您可以获得图像中的所有信息。


您可以尝试使用ConnectionSettingsType作为WiFi的ConnectionSettingsTask从您的应用程序打开WiFi设置屏幕。 


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();