public NetworkAdapterConfiguration(ManagementObject theObject)
 {
     Initialize();
     if ((CheckIfProperClass(theObject) == true))
     {
         PrivateLateBoundObject  = theObject;
         PrivateSystemProperties = new ManagementSystemProperties(PrivateLateBoundObject);
         curObj = PrivateLateBoundObject;
     }
     else
     {
         throw new System.ArgumentException("Class name does not match.");
     }
 }
 private void InitializeObject(ManagementScope mgmtScope, ManagementPath path, System.Management.ObjectGetOptions getOptions)
 {
     Initialize();
     if ((path != null))
     {
         if ((CheckIfProperClass(mgmtScope, path, getOptions) != true))
         {
             throw new System.ArgumentException("Class name does not match.");
         }
     }
     PrivateLateBoundObject  = new ManagementObject(mgmtScope, path, getOptions);
     PrivateSystemProperties = new ManagementSystemProperties(PrivateLateBoundObject);
     curObj = PrivateLateBoundObject;
 }
 public NetworkAdapter(ManagementBaseObject theObject)
 {
     Initialize();
     if ((CheckIfProperClass(theObject) == true))
     {
         embeddedObj             = theObject;
         PrivateSystemProperties = new ManagementSystemProperties(theObject);
         curObj     = embeddedObj;
         isEmbedded = true;
     }
     else
     {
         throw new ArgumentException("Class name does not match.");
     }
 }