這是一個很好的源碼
mo
iObj = mo
iObj[
iObj[
oObj = mo
iObj = mo
iObj[
oObj = mo
}
}
///<summary>DHCPEnabled</summary>
public void EnableDHCP()
{
foreach (ManagementObject mo in moc)
{
if (!(bool)mo[
if (!(bool)mo[
{
iObj = mo
oObj = mo
}
}
}
}
From:http://tw.wingwit.com/Article/program/net/201311/13369.html