NetworkInterface, Wifi or Lan?

前端 未结 1 1510
遇见更好的自我
遇见更好的自我 2021-01-13 10:26

How do i find out if a NetworkInterface is a Wifi or Lan Card in C#? And is there a safe way of determining this?

1条回答
  •  鱼传尺愫
    2021-01-13 11:01

    You can use the NetworkInterfaceType property of the NetworkInterface class.

    It will be equal to NetworkInterfaceType.Wireless80211 if the interface represents a WiFi adapter.

    0 讨论(0)
提交回复
热议问题