Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

expose an enum type through wmi

0 views
Skip to first unread message

Jeremy

unread,
Jun 25, 2008, 12:39:16 PM6/25/08
to
I have a class I've exposed through wmi. one of the properties I want to
expose is an enum type. Is this possible? I keep getting an unsupported
type exception.

[ManagementEntity(Singleton = true)]
[ManagementQualifier("Runtime", Value = "Runtime information.")]
public class RuntimeData
{
public enum enState
{
rsHalted,
rsStartup,
rsRunning,
rsShutdown,
rsForcedShutdown
}

private enState eState_m;
[ManagementProbe]
[ManagementQualifier("State", Value = ".")]
public enState State
{
get
{
return eState_m;
}
set
{
eState_m = value;
}
}
}


0 new messages