how can I get the connection statues and speed in windows XP?
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试):
问题:
回答1:
This should tell you if a network is available.
bool IsAvailable = System.Net.NetworkInformation.NetworkInterface.GetIsNetworkAvailable();
Gets the speed of the network
long NetworkSpeed = System.Net.NetworkInformation.NetworkInterface.Speed;
See here for other things you can use: http://msdn.microsoft.com/en-us/library/system.net.networkinformation.networkinterface(v=VS.100).aspx