Мне нужен способ узнать текущее использование сети системой, вверх и вниз.
Я нашел кое-что в сети, но они мне не подходят.
Спасибо за помощь.
Фрагмент кода:
private void timerPerf_Tick(object sender, EventArgs e)
{
if (!NetworkInterface.GetIsNetworkAvailable())
return;
NetworkInterface[] interfaces
= NetworkInterface.GetAllNetworkInterfaces();
foreach (NetworkInterface ni in interfaces)
{
this.labelnetup.Text = " Bytes Sent: " + ni.GetIPv4Statistics().BytesSent;
this.labelnetdown.Text = " Bytes Rec: " + ni.GetIPv4Statistics().BytesReceived;
}
}
Подробнее здесь: https://stackoverflow.com/questions/208 ... work-usage