ICorDebugInternalFrame2::IsCloserToLeaf 方法

检查 this 内部帧是否比指定的 ICorDebugFrame 对象更接近叶。

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

参数

  • pFrameToCompare
    [in] 一个指向比较 ICorDebugFrame 对象的指针。

  • pIsCloser
    [out] 如果 this 内部帧比 pFrameToCompare 指定的帧更接近叶,则为 true;否则为 false。

返回值

此方法将返回以下特定的 HRESULT 以及用于指示方法失败的 HRESULT 错误。

HRESULT

说明

S_OK

已成功执行比较。

E_FAIL

未能执行比较。

E_INVALIDARG

pFrameToCompare 或 pIsCloser 为 null。

备注

IsCloserToLeaf 可用于实现内部帧与堆栈上的其他帧进行交替的策略。

要求

**平台:**请参见 .NET Framework 系统要求

头文件: CorDebug.idl、CorDebug.h

**库:**CorGuids.lib

**.NET Framework 版本:**4

请参见

参考

ICorDebugInternalFrame2 接口

其他资源

调试接口

调试(非托管 API 参考)