foreach (System.Net.NetworkInformation.NetworkInterface f in System.Net.NetworkInformation.NetworkInterface.GetAllNetworkInterfaces())
{
    if (f.OperationalStatus == System.Net.NetworkInformation.OperationalStatus.Up)
    {
        var i = f.GetIPProperties().DhcpServerAddresses.Count;
    }
}

 

相关文章:

  • 2021-10-01
  • 2022-12-23
  • 2021-12-26
  • 2021-12-26
  • 2021-12-26
  • 2022-12-23
  • 2022-12-23
  • 2022-01-20
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-09-04
  • 2022-12-23
  • 2022-12-23
  • 2021-12-26
相关资源
相似解决方案