ICorDebugExceptionObjectValue::EnumerateExceptionCallStack Method

Gets an enumerator to the call stack embedded in an exception object.

Syntax

HRESULT EnumerateExceptionCallStack(
    [out] ICorDebugExceptionObjectCallStackEnum **ppCallStackEnum
);

Parameters

ppCallStackEnum [out] A pointer to the address of an ICorDebugExceptionObjectCallStackEnum interface object that is a stack trace enumerator for a managed exception object.

Remarks

If no call stack information is available, the method returns S_OK, and ICorDebugExceptionObjectCallStackEnum is a valid enumerator with a length of 0. If the method is unable to retrieve stack trace information, the return value is E_FAIL and no enumerator is returned.

The ICorDebugExceptionObjectCallStackEnum object is responsible for decoding the stack trace data from the _stackTrace field of the exception object.

Requirements

Platforms: See System Requirements.

Header: CorDebug.idl, CorDebug.h

Library: CorGuids.lib

.NET Framework Versions: Available since 4.5

See also