Exemplo n.º 1
0
            public override _SubDevice Extend()
            {
                var mjext = new WprManagementObjectSearcher("Win32_NetworkAdapterConfiguration").First("Index", DeviceID.AsString(), "=");

                this.Serialize(mjext, new List <string> {
                    "IpAddress", "DefaultIPGateway", "DNSServerSearchOrder", "IpSubnet"
                });
                return(this);
            }