C#得到XP网络连接状态和速度 [英] C# get network connection status and speed in XP

查看:99
本文介绍了C#得到XP网络连接状态和速度的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我怎样才能在Windows XP中连接雕像和速度?


解决方案

这应该告诉你,如果一个网络可用

 布尔IsAvailable = System.Net.NetworkInformation.NetworkInterface.GetIsNetworkAvailable(); 



获取网络



<$ p的速度$ p> 长NetworkSpeed = System.Net.NetworkInformation.NetworkInterface.Speed;



在这里看到你可以用其他的东西:的 http://msdn.microsoft.com/en-us/library/system。 net.networkinformation.networkinterface(v = VS.100)的.aspx


how can I get the connection statues and speed in windows XP?

解决方案

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

这篇关于C#得到XP网络连接状态和速度的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆