在C#中检查无线带宽 [英] Checking Wireless Bandwidth in C#

查看:61
本文介绍了在C#中检查无线带宽的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当无线连接断开并在VS 2005中使用C#代码再次恢复时,如何检查无线带宽(wifi)

How do I check wireless Bandwidth(wifi) when the wireless connection dropped and resuming again using C# code in VS 2005

推荐答案

您可以NetworkInterface类以在网络接口上获取信息,如下所示:

You can you the NetworkInterface class to get information on a network interface like this:

NetworkInterface[] networkCards = NetworkInterface.GetAllNetworkInterfaces();

foreach (NetworkInterface ni in networkCards)
{
    Console.WriteLine(ni.Name + " @ " + ni.Speed + " bits per second");
}




希望这会有所帮助,
弗雷德里克·博纳德(Fredrik Bornander)




Hope this helps,
Fredrik Bornander


这篇关于在C#中检查无线带宽的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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