简体   繁体   English

如何在windows ce中找到所有网络接口?

[英]How to find all the network interfaces in windows ce?

In my C# application I need to identify all the network interfaces of my device running on windows ce 6.0. 在我的C#应用​​程序中,我需要识别在windows ce 6.0上运行的设备的所有网络接口。

In dot net full framework I am able to use 在dot net full framework我能够使用

NetworkInterface.GetAllNetworkInterfaces();

but I don't see the same namespace and class in compact framework. 但我没有在紧凑的框架中看到相同的命名空间和类。
I need the code similar to NetworkInterface.GetAllNetworkInterfaces() . 我需要类似于NetworkInterface.GetAllNetworkInterfaces()的代码。

One option could be to run the windows command "netsh" and parse the output: 一个选项可能是运行Windows命令“netsh”并解析输出:

Command: 命令:

netsh interface show interface

Outputs: 输出:

Admin State    State          Type             Interface Name
-------------------------------------------------------------------------
Enabled        Connected      Dedicated        Ethernet 1
Enabled        Disconnected   Dedicated        Wi-Fi

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM