VB.NET检查计算机是否有Wi-Fi适配器

时间:2016-03-17 18:51:13

标签: vb.net wifi

我正在制作一个能够详尽分析PC的应用程序,我想检测笔记本电脑上是否存在wifi

1 个答案:

答案 0 :(得分:0)

我认为这可以解决您的问题

imports System.net
Imports System.Net.NetworkInformation
Dim adapters() As NetworkInterface = NetworkInterface.GetAllNetworkInterfaces() 
    For Each adapter As NetworkInterface In adapters 
        If adapter.NetworkInterfaceType = NetworkInterfaceType.Wireless80211 Then 
           MessageBox.Show("wireless found")
        End If 

   next