Share via


IDebugDocumentPosition2::IsPositionInDocument

Determines if the document position is contained in the given document.

HRESULT IsPositionInDocument( 
   IDebugDocument2* pDoc
);
int IsPositionInDocument( 
   IDebugDocument2 pDoc
);

Parameters

  • pDoc
    [in] The IDebugDocument2 object that represents the containing document candidate.

Return Value

If successful, returns S_OK; otherwise, returns an error code.

Remarks

This method is used primarily in setting breakpoints in IDebugDocument2 interfaces. As documents are loaded, the breakpoint position is called to determine if the document contains this position.

See Also

Reference

IDebugDocumentPosition2

IDebugDocument2