ICorDebugInternalFrame2::IsCloserToLeaf 方法

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

语法

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

参数

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

pIsCloser
[out] 如果内部帧 thispFrameToCompare 指定的帧更接近该叶,则为 true;否则为 false

返回值

此方法返回以下特定 HRESULT 以及表示方法失败的 HRESULT 错误。

HRESULT 说明
S_OK 已成功执行该比较。
E_FAIL 无法执行该比较。
E_INVALIDARG pFrameToComparepIsCloser 为 null。

备注

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

要求

平台:请参阅系统要求

标头:CorDebug.idl、CorDebug.h

库:CorGuids.lib

.NET Framework 版本:自 4 起可用

请参阅