Re: Programmatically enumerate classes?

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance



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.


.



Relevant Pages

  • Re: PK fields on a table
    ... The Primary Key is indexed to a Block Storage/Memory Address in a seperate table, ... What does matter is the size of the Primary Key field, ...
    (microsoft.public.sqlserver.programming)
  • Re: ODBC linked table - primary key
    ... guidance on WHY MS Access asks for a primary key on ODBC linked tables. ... read-only link. ... I'm contending that it shouldn't matter, ... This can make queries and filters misbehave. ...
    (microsoft.public.access.tablesdbdesign)
  • Re: dar: slice keeps growing past limit, config error?
    ... *Deliberate* attempts ... at making postings incompatible are simply inexcusable, no matter who the ... target group is -- it's just as childish as when the Other Camp posts a ... and should strictly speaking be rejected by strict news ...
    (alt.os.linux.suse)
  • Re: dar: slice keeps growing past limit, config error?
    ... > at making postings incompatible are simply inexcusable, no matter who the ... and should strictly speaking be rejected by strict news ... > servers. ... `I agree that school is a learning environment, ...
    (alt.os.linux.suse)
  • Too many args when running a stored procedure
    ... no matter how many i try to add, i thought i would try to insert the primary ... key only and work up from there but the primary key insert didnt work ... (@JobNumber) ...
    (microsoft.public.dotnet.languages.vb)