EnumerateClassNames Operation


The enumerateClassNames operation is used to enumerate the names of subclasses of a CIM Class in the target Namespace.

NameSpace String that defines the target namespace. See NameSpace Operations for more information.

ClassName   Defines the name of the Class to be retrieved. Null (no entry) lists all class names in the Namespace

DeepInheritance   If true return names of all subclasses of specified class. If false, only immediate subclasses are returned.

          


Request Return 

If successful, the method returns zero or more names of Classes that meet the requested criteria as a CIM Array.

If unsuccessful, one of the following status codes MUST be returned by this method, where the first applicable error in the list (starting with the first element of the list, and working down) is the error returned. Any additional method-specific interpretation of the error in is given in parentheses.


Additional Information on the Fields

NameSpace - The NameSpace parameter is a string that defines the target namespace

className - The ClassName input parameter defines the Class that is the basis for the enumeration. 

DeepInheritance - If the DeepInheritance input parameter is true, this specifies that the names of all subclasses of the specified Class should be returned (if the ClassName input parameter is absent, this implies that the names of all Classes in the target Namespace should be returned). If false, only the names of immediate child subclasses are returned (if the ClassName input parameter is NULL, this implies that the names of all base Classes in the target Namespace should be returned).


C++ Call

    virtual Array enumerateClassNames(
    	const String& nameSpace,
    	const String& className = String::EMPTY,
    	Boolean deepInheritance = false) = 0;