IDebugClassField::EnumBaseClasses
Applies to: Visual Studio Visual 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 base classes of this class.
Syntax
HRESULT EnumBaseClasses(
IEnumDebugFields** ppEnum
);
int EnumBaseClasses(
out IEnumDebugFields ppEnum
);
Parameters
ppEnum
\
[out] Returns an IEnumDebugFields object representing the list of base classes. Returns a null value if there are no base classes.
Return Value
If successful, returns S_OK, returns S_SH_NO_BASE_CLASSES if there are no base classes (and the ppEnum
parameter is set to a null value); otherwise, returns an error code.
Remarks
The base classes in the enumerator object are specified in order of the most immediate (or most derived) base class to the most remote base class. For example, given the C++ classes:
class Root { }
class Level1 : Root { }
class Level2 : Level1 { }
class MyClass : Level2 { }
The enumeration would return the base classes in the order Level2
, Level1
, Root
.