次の方法で共有


IDebugClassField::EnumNestedClasses

Applies to: yesVisual Studio noVisual Studio for Mac

Note

This article applies to Visual Studio 2017. If you're looking for the latest Visual Studio documentation, see Visual Studio documentation. We recommend upgrading to the latest version of Visual Studio. Download it here

Creates an enumerator for the classes nested in this class.

Syntax

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