Registering Custom WMI C# class/event <p>I have a project with a class that extend a WMI event and used to publish data through WMI. the class look like this (just few rows of the entire class):</p> <pre><code>[InstrumentationClass(InstrumentationType.Instance)] public class PointInstrumentation { private bool enabled = true; // static data public string UserName { get; set; } public string EffectiveUserName { get; set; } public string Environment { get; set; } public string Universe { get; set; } public int AppProcessId { get; set; } public string ProcessName { get; set; } public string AppHostName { get; set; } public string Keyword { get; set; } public string Version { get; set; } public string OrbAddress { get; set; } public string ApiVersion { get; set; } </code></pre> <p>..</p> <pre><code> public void Publish() { System.Management.Instrumentation.Instrumentation.Publish(this); </code></pre> <p>..</p> <p>as you can see, its extends using attribute declation "[InstrumentationClass(InstrumentationType.Instance)]"</p> <p>my issue is that when i register the dll, i don't see PointInstrumentation class in the WMI explorer, hence, i can't query what is being published.</p> <p>Can anyone please explain me what am i doing wrong and what the appropriate way to register WMI (c#) classes.</p> <p>Thanks</p>