EnumerateClassNames()
You can use the EnumerateClassNames()
method to enlist the names of all subclasses of a single object class or the
names of all classes of the same object type in the target namespace.
Parameters
Table 216 shows the parameters you can specify for
the EnumerateClassNames() method:
Table 216. EnumerateClassNames() parameters
|
Parameter |
Type |
Description |
| ClassName |
String |
Defines the name of the class for which subclasses are
to be returned. If this parameter is NULL, all base classes within
the target namespace are returned. |
| DeepInheritance |
Boolean |
TRUE returns all subclasses of the specified class.
FALSE returns only immediate child subclasses. |
Return values
The EnumerateClassNames() method enumerates the specified name of one or
more classes or returns one of the following error codes:
- CIM_ERR_ACCESS_DENIED
- CIM_ERR_INVALID_NAMESPACE
- CIM_ERR_INVALID_PARAMETER
- CIM_ERR_INVALID_CLASS
- CIM_ERR_FAILED