Specific network interface IPv4 availability - No connectivity, Local, Internet

后端 未结 2 1221
慢半拍i
慢半拍i 2021-01-13 13:39

How to identify connectivity status of a specific NetworkInterface ?

        NetworkInterface[] nets = NetworkInterface.GetAllNetworkInterface         


        
2条回答
  •  时光说笑
    2021-01-13 14:10

    I think the Microsoft dialog you show above is using information gained by coding against the Network Location Awareness API.

    http://msdn.microsoft.com/en-us/library/ee264321%28v=VS.85%29.aspx

提交回复
热议问题