.NET Framework Developer Center > .NET Development Forums > .NET Base Class Library > Get traffic staistics for network interface
Ask a questionAsk a question
 

AnswerGet traffic staistics for network interface

  • Monday, November 02, 2009 5:15 PMShoar Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     
    Hi all. I need to get a network statistics, especially total traffic count, for each network interface of the computer. I found that System.Net.NetworkInformation.NetworkInterface class can be used to obtain information about IPv4 traffic, but I need to get all traffic count (not only IPv4) like network connection context menu 'Status' item does (in windows xp). Is there any way to get it using .Net classes, Win API or WMI? Thanks in advance.

Answers

All Replies