public abstract class NetworkInterface
描述网络接口信息的类,可以从中获取IP,DNS,MAC,Mask,Gateway等信息,还能获取接口状态,是否可用等,
成员方法:
public static NetworkInterface[] GetAllNetworkInterfaces()静态函数,返回当前电脑里所有可用的网络接口。
例:当调用此函数会返回我电脑上所有网络接口,
===========================================================================
接口列表
11...d4 3d 7e 9d 64 09 ......Realtek PCIe GBE Family Controller
14...00 50 56 c0 00 01 ......VMware Virtual Ethernet Adapter for VMnet1
16...00 50 56 c0 00 08 ......VMware Virtual Ethernet Adapter for VMnet8
1...........................Software Loopback Interface 1
12...00 00 00 00 00 00 00 e0 Microsoft ISATAP Adapter
13...00 00 00 00 00 00 00 e0 Teredo Tunneling Pseudo-Interface
15...00 00 00 00 00 00 00 e0 Microsoft ISATAP Adapter #2
17.