marclile Posted March 12, 2003 Posted March 12, 2003 (edited) Just wondering if someone knows how to list all of the properties and their values from a WMI class. I know how to get the number of properties, by doing the following: Dim wmi As New ManagementClass("Win32_ComputerSystem") wmi.Get() MessageBox.Show(wmi.Properties.Count.ToString) I'm just not sure how to loop through all the properties. I want to list all possible properties and their values in a ListView. Any ideas? Edited March 12, 2003 by divil Quote
*Gurus* divil Posted March 12, 2003 *Gurus* Posted March 12, 2003 Dim d As PropertyData For Each d In wmi.Properties 'etc Next Something like that, maybe? Quote MVP, Visual Developer - .NET Now you see why evil will always triumph - because good is dumb. My free .NET Windows Forms Controls and Articles
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.