using System.Management; // System.Management
using System.Collections; // System.Collections
namespace Win32_NetworkAdapterConfiguration
{
public partial class Form1 : Form
{
ArrayList AryLst = new ArrayList(); // ArrayList
ManagementObject objCls; // ManagementObject
string strCls = "Win32_NetworkAdapterConfiguration"; // WMI 命名空间 ( Namespace )
string strNS = "root\\CIMV2"; // WMI 类 (Class)
string strIndex; // 用来记录网卡界面 Index
Public Form1()
{
InitializeComponent();
}
private void Form1_Load(object sender, EventArgs e)
C#设置网卡信息(IP,子网掩码,网关,DNS)
最新推荐文章于 2023-11-15 18:57:26 发布