ICorDebugNativeFrame2::IsMatchingParentFrame 方法

确定指定的帧是否为当前帧的父级。

Syntax

HRESULT IsMatchingParentFrame([in] ICorDebugNativeFrame2
                                      *pPotentialParentFrame,
                              [out] BOOL *pIsParent);

参数

pPotentialParentFrame [in]指向要计算父状态的帧对象的指针。

[out] 如果 为当前帧的父级,则为

返回值

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

HRESULT Description
S_OK 已成功返回父状态。
E_FAIL 无法返回父状态。
E_INVALIDARG pPotentialParentFramepIsParent 为 null。

例外

注解

IsMatchingParentFrame 如果 true 传递给该方法的帧对象是调用该方法的帧对象的父对象,则返回。 如果在不是指定帧的子帧上调用该方法,则返回错误。

要求

平台: 请参阅 .NET 支持的作系统

页眉: CorDebug.idl、CorDebug.h

图书馆: CorGuids.lib

.NET 版本: 自 .NET Framework 4.0 起可用

另请参阅