2017-08-01 52 views

回答

3

你也可以遍歷所有的網絡適配器,並從每個適配器獲取接口類型:

Dim networkInterfaces As NetworkInterface() = NetworkInterface.GetAllNetworkInterfaces() 

For Each networkInterface As NetworkInterface In networkInterfaces 
    Console.WriteLine("Name: {0} - Type: {1}", networkInterface.Name, networkInterface.NetworkInterfaceType) 
Next 

其他類似SO/MSDN問題:

相關問題