|
|
|
date: Fri, 11 Apr 2008 11:17:02 -0700,
group: microsoft.public.win32.programmer.wmi
back
Questions about WMI MOF Schemas and versioning
Hi,
I have an existing set of WMI data classes based on a MOF
schema that I have created. One of the classes needs to have additional
properties. It is my understanding that as a best practice, one does not
change existing WMI classes from a previous version of oneâs product. So
would the proper thing be to add a WMI object class that derives from the
original and use that in my code base? i.e.:
[
Description("Initial class"),
UUID("XXXX -- etc"):ToInstance
]
class InitialClass
{
[ read, Not_Null, WmiDataId(1),
Description("a property.")
:ToSubClass]
String Property1 ;
};
[
Description("derived class for v2.0 of product"),
UUID("XXXX -- etc"):ToInstance
]
class InitialClass_V2 : InitialClass
{
[ read, Not_Null, WmiDataId(1),
Description("new property that we need.")
:ToSubClass]
String Property2 ;
};
Should this derived class be put in its own namespace? Do relations that
refer to the original class need to be updated or subclassed as well?
Thanks,
-dave
date: Fri, 11 Apr 2008 11:17:02 -0700
author: David Moore am
|
|