Click here to Skip to main content
16,021,211 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
How do I check wireless Bandwidth(wifi) when the wireless connection dropped and resuming again using C# code in VS 2005
Posted
Updated 28-Jul-11 7:14am
v2

1 solution

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

C#
NetworkInterface[] networkCards = NetworkInterface.GetAllNetworkInterfaces();

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



Hope this helps,
Fredrik Bornander
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900