ICorDebugNativeFrame2::IsMatchingParentFrame Method

Determines whether the specified frame is the parent of the current frame.

Syntax

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

Parameters

pPotentialParentFrame
[in] A pointer to the frame object that you want to evaluate for parent status.

pIsParent
[out] true if pPotentialParentFrame is the current frame’s parent; otherwise, false.

Return Value

This method returns the following specific HRESULTs as well as HRESULT errors that indicate method failure.

HRESULT Description
S_OK The parent status was successfully returned.
E_FAIL The parent status could not be returned.
E_INVALIDARG pPotentialParentFrame or pIsParent is null.

Exceptions

Remarks

IsMatchingParentFrame returns true if the frame object you pass to the method is the parent of the frame object on which the method was called. If you call the method on a frame that is not a child of the specified frame, it returns an error.

Requirements

Platforms: See System Requirements.

Header: CorDebug.idl, CorDebug.h

Library: CorGuids.lib

.NET Framework Versions: Available since 4

See also