Home > Swf > WMI and CSharp (C#)Enumerate all the instances (and properties) from a class via WQL

WMI and CSharp (C#)Enumerate all the instances (and properties) from a class via WQL

March 3rd, 2009

In the two previous posts (Enumerate all classes from a namespace and Enumerate all Namespaces from Root) we gather enough information to enumerate namespaces and classes. In this post we are going to see how to enumerate all the instances from a class via WQL.

using System;
using System.Collections.Generic;
using System.Text;
using System.Management;

namespace WmiNamespace
{
class Program
[...]

Source:WMI and CSharp (C#)Enumerate all the instances (and properties) from a class via WQL

admin Swf , ,