GetAllNetworkAdapters 方法返回启用了 IP 协议的所有网络适配器的列表。
语法
void GetAllNetworkAdapters(
string Adapters[]
);
参数
适配器
[out]返回一个字符串数组,其中包含启用了 IP 协议的网络适配器。
要求
Windows Server 2022、Windows Server 2019、Windows Server 2016、Windows 11 和 Windows 10
另请参阅
WmiSnaLinkServiceMS WMI 提供程序类
MsSna_LinkService_IpDlc 类
管理和管理程序员指南