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 類別
系統管理和管理程式設計指南