- Feb 13, 2003
- 26,252
- 403
- 126
Is there something like the PHP print_r function for .NET? I need to find out the index names of an array, more precisely from a WMI ManagementObject class. I shouldn't need to do this since I looked up the ManagementObject class members on MSDN but when trying to reference some of the indexes, say "Status", I get a null reference exception so I'm guessing the object I'm working with does not have that index.
The code that gets the information does a "SELECT * FROM Win32_NetworkAdapter" so I would think it should get all of the available members of NetworkAdapter ("Status" is one of them).
Any ideas? Thank you.
The code that gets the information does a "SELECT * FROM Win32_NetworkAdapter" so I would think it should get all of the available members of NetworkAdapter ("Status" is one of them).
Any ideas? Thank you.