ICorDebugInternalFrame2::IsCloserToLeaf 方法
檢查內部框架是否 this
比指定的 ICorDebugFrame 物件更接近分葉。
語法
HRESULT IsCloserToLeaf([in] ICorDebugFrame * pFrameToCompare,
[out] BOOL * pIsCloser);
參數
pFrameToCompare
[in]比較 ICorDebugFrame
物件的指標。
pIsCloser
[out] true
this
如果內部框架比 指定的pFrameToCompare
框架更接近分葉,則為 ,false
否則為 。
傳回值
這個方法會傳回下列特定的 HRESULT,以及表示方法失敗的 HRESULT 錯誤。
HRESULT | 描述 |
---|---|
S_OK | 已成功執行比較。 |
E_FAIL | 無法執行比較。 |
E_INVALIDARG | pFrameToCompare 或 pIsCloser 為 null。 |
備註
IsCloserToLeaf
可用來實作原則,以交錯內部框架與堆疊上的其他框架。
需求
平台:請參閱系統需求。
標頭:CorDebug.idl、CorDebug.h
程式庫:CorGuids.lib
.NET Framework 版本: 自 4 起提供