MsSna_LinkService_IpDlc.GetAllStaticIPs 方法

GetAllStaticIPs 方法返回本地计算机上所有静态 IP 地址的列表。

语法

  
void GetAllStaticIps(  
   string IPs[]  
);  

参数

IP地址
[out]返回包含本地计算机上的静态 IP 地址的字符串数组。

要求

Windows Server 2022、Windows Server 2019、Windows Server 2016、Windows 11 和 Windows 10

另请参阅

WmiSnaLinkServiceMS WMI 提供程序类
MsSna_LinkService_IpDlc 类
管理和管理程序员指南