public void Search(EntityInventoryCollection collection)
 {
     using (var wmi = new WMI <EntityComputerSystemInventory>(new EntityComputerSystemInventory()))
     {
         collection.ComputerSystem = wmi.Execute();
     }
 }
 public void Search(EntityInventoryCollection collection)
 {
     using (var wmi = new WMI <EntityHardDrive>(new EntityHardDrive()))
     {
         collection.HardDrives = wmi.GetObjectList();
     }
 }
Esempio n. 3
0
 public void Search(EntityInventoryCollection collection)
 {
     using (var wmi = new WMI <EntitySoftwareInventory>(new EntitySoftwareInventory()))
     {
         collection.Software = wmi.GetObjectList();
     }
 }
Esempio n. 4
0
 public void Search(EntityInventoryCollection collection)
 {
     using (var wmi = new WMI <EntityPrinter>(new EntityPrinter()))
     {
         collection.Printers = wmi.GetObjectList();
     }
 }
Esempio n. 5
0
 public void Search(EntityInventoryCollection collection)
 {
     using (var wmi = new WMI <EntityBiosInventory>(new EntityBiosInventory()))
     {
         collection.Bios = wmi.Execute();
     }
 }
Esempio n. 6
0
 public void Search(EntityInventoryCollection collection)
 {
     using (var wmi = new WMI <EntityProcessorInventory>(new EntityProcessorInventory()))
     {
         collection.Processor = wmi.Execute();
     }
 }