NetworkInterface[] netWorks = NetworkInterface.GetAllNetworkInterfaces();
foreach (NetworkInterface netWork in netWorks)
{
    if (netWork.Name=="本地连接")
    {
        MessageBox.Show(netWork.GetPhysicalAddress().ToString()); 
    }
}

 

相关文章:

  • 2021-10-30
  • 2021-08-12
  • 2021-05-20
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2021-05-20
  • 2021-12-05
  • 2021-06-26
  • 2022-12-23
  • 2021-11-19
  • 2021-06-12
相关资源
相似解决方案