Re: Programmatically enumerate classes?
- From: "Homer J. Simpson" <root@xxxxxxxxx>
- Date: Wed, 30 Jan 2008 16:14:20 -0500
Yeah, IE+ActiveX as a WMI object browser...talk about using the right
tools for the right job...
Hehe.
I've noticed that CIM_Studio seems to be able to identify which fields in
any given class constitute the primary key. Have you been able to
determine how it manages that? Strictly speaking, it's not absolutely
necessary for my app, but I think it would be a *great* help to the user.
Yes, check out "Qualifiers".
Great hints, Gerry--once again, thank you. Looks like you're a fan of
leaving *some* things "as an exercise to the reader". :-)
I was looking for something by the name of "Qualifier" in CIM_Studio, but
then it's only after a few minutes that it occured to me that IntelliSense
showed this as a member of .NET's System.Management.PropertyData class.
Looks like it's just a matter of iterating over all the Properties, and then
looking for PropertyData.Qualifiers[ "key" ] and then verifying that the
QualifierData.Value field is true. So far this hasn't failed me.
.
- References:
- Programmatically enumerate classes?
- From: Homer J. Simpson
- Re: Programmatically enumerate classes?
- From: Gerry Hickman
- Re: Programmatically enumerate classes?
- From: Homer J. Simpson
- Re: Programmatically enumerate classes?
- From: Gerry Hickman
- Re: Programmatically enumerate classes?
- From: Homer J. Simpson
- Re: Programmatically enumerate classes?
- From: Gerry Hickman
- Programmatically enumerate classes?
- Prev by Date: ExecMethod( ) return : WBEM_E_INVALID_METHOD_PARAMETERS
- Next by Date: wmi logical disk on remote computer
- Previous by thread: Re: Programmatically enumerate classes?
- Next by thread: Is there a way to retrieve 2 classes in one call?
- Index(es):
Relevant Pages
|