ICorDebugInternalFrame2::IsCloserToLeaf Method

Checks whether the this internal frame is closer to the leaf than the specified ICorDebugFrame object.

Syntax

HRESULT IsCloserToLeaf([in] ICorDebugFrame * pFrameToCompare,  
                       [out] BOOL * pIsCloser);  

Parameters

pFrameToCompare
[in] A pointer to the comparison ICorDebugFrame object.

pIsCloser
[out] true if the this internal frame is closer to the leaf than the frame specified by pFrameToCompare; otherwise, false.

Return Value

This method returns the following specific HRESULTs as well as HRESULT errors that indicate method failure.

HRESULT Description
S_OK The comparison was successfully performed.
E_FAIL The comparison could not be performed.
E_INVALIDARG pFrameToCompare or pIsCloser is null.

Remarks

IsCloserToLeaf can be used to implement a policy for interleaving internal frames with other frames on the stack.

Requirements

Platforms: See System Requirements.

Header: CorDebug.idl, CorDebug.h

Library: CorGuids.lib

.NET Framework Versions: Available since 4

See also