问题
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
来源:https://stackoverflow.com/questions/3921999/c-sharp-get-network-connection-status-and-speed-in-xp