确定指定帧是否是当前帧的父级。
语法
HRESULT IsMatchingParentFrame([in] ICorDebugNativeFrame2
*pPotentialParentFrame,
[out] BOOL *pIsParent);
参数
pPotentialParentFrame
[in]指向要计算父状态的帧对象的指针。
pIsParent
[out] true
如果 pPotentialParentFrame
为当前帧的父级,则为
返回值
此方法返回以下特定 HRESULT 以及表示方法失败的 HRESULT 错误。
HRESULT | 说明 |
---|---|
S_OK | 已成功返回父级状态。 |
E_FAIL | 无法返回父级状态。 |
E_INVALIDARG | pPotentialParentFrame 或 pIsParent 为 null。 |
例外
备注
如果传递给方法的帧对象是调用方法的帧对象的父级,则 IsMatchingParentFrame
会返回 true
。 如果在不是指定帧的子级帧上调用方法,则返回错误。
要求
平台:请参阅系统要求。
标头:CorDebug.idl、CorDebug.h
库:CorGuids.lib
.NET Framework 版本:自 4 起可用