Compartir a través de


IDebugClassField::EnumNestedClasses

Creates an enumerator for the classes nested in this class.

HRESULT EnumNestedClasses( 
   IEnumDebugFields** ppEnum
);
int EnumNestedClasses(
   out IEnumDebugFields ppEnum
);

Parameters

  • ppEnum
    [out] Returns an IEnumDebugFields object representing the list of nested classes. Returns a null value if there are no nested classes.

Return Value

If successful, returns S_OK or returns S_FALSE if there are no nested classes. Otherwise, returns an error code.

Remarks

Each element of the enumeration is an IDebugClassField object describing a nested class.

A nested class is a class defined inside another class. For example:

class RootClass {
   class NestedClass { }
};

The IEnumDebugFields enumeration would contain one object representing the NestedClass class.

See Also

Reference

IDebugClassField

IEnumDebugFields