VL: System.Managagment.PropertyDataCollection needs to be Enumerable


I was poking around vl looking at way to detect whether my hardware is plugged in or not and I came across HardwareAdded/Changed/Removed nodes. Nice.

But I can’t see the properties because the PropertyDataCollection should probably be imported as an IEnumerable according to Microsoft.

hello guest, it seems the PropertyCollection implements IEnumerable but not the generic interface. to iterate thru the properties you need the DevLib and use the OfType node:

1 Like

Cool, thanks!

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.