Added a Parent property to the WMI exposed Hardware objects
authorpaulwerelds
Mon, 18 Oct 2010 07:15:31 +0000
changeset 23499fad54de9f7
parent 233 c5139c236200
child 235 99b6bab765f8
Added a Parent property to the WMI exposed Hardware objects
WMI/Hardware.cs
     1.1 --- a/WMI/Hardware.cs	Sun Oct 17 19:25:50 2010 +0000
     1.2 +++ b/WMI/Hardware.cs	Mon Oct 18 07:15:31 2010 +0000
     1.3 @@ -46,6 +46,7 @@
     1.4      public string HardwareType { get; private set; }
     1.5      public string Identifier { get; private set; }
     1.6      public string Name { get; private set; }
     1.7 +    public string Parent { get; private set; }
     1.8  
     1.9      #endregion
    1.10  
    1.11 @@ -53,6 +54,7 @@
    1.12        Name = hardware.Name;
    1.13        Identifier = hardware.Identifier.ToString();
    1.14        HardwareType = hardware.HardwareType.ToString();
    1.15 +      Parent = hardware.Parent.Identifier.ToString();
    1.16      }
    1.17  
    1.18      public void Update() { }