共用方式為


ICorDebugInternalFrame2::IsCloserToLeaf 方法

檢查內部框架是否 this 比指定的 ICorDebugFrame 物件更接近分葉。

語法

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

參數

pFrameToCompare [in]比較 ICorDebugFrame 物件的指標。

pIsCloser[out] truethis如果內部框架比 指定的pFrameToCompare框架更接近分葉,則為 ,false否則為 。

傳回值

這個方法會傳回下列特定的 HRESULT,以及表示方法失敗的 HRESULT 錯誤。

HRESULT 描述
S_OK 已成功執行比較。
E_FAIL 無法執行比較。
E_INVALIDARG pFrameToComparepIsCloser 為 null。

備註

IsCloserToLeaf 可用來實作原則,以交錯內部框架與堆疊上的其他框架。

需求

平台:請參閱系統需求

標頭:CorDebug.idl、CorDebug.h

程式庫:CorGuids.lib

.NET Framework 版本: 自 4 起提供

另請參閱