IDebugDocumentPosition2::IsPositionInDocument
Applies to: Visual Studio Visual Studio for Mac
Note
This article applies to Visual Studio 2017. If you're looking for the latest Visual Studio documentation, see Visual Studio documentation. We recommend upgrading to the latest version of Visual Studio. Download it here
Determines if the document position is contained in the given document.
Syntax
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.