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 クラス
管理および管理プログラマ ガイド