IDebugDocumentPosition2::GetDocument

Gets the containing document.

HRESULT GetDocument( 
   IDebugDocument2** ppDoc
);
int GetDocument( 
   out IDebugDocument2 ppDoc
);

Parameters

  • ppDoc
    [out] Returns an IDebugDocument2 object that represents the document containing this position.

Return Value

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

See Also

Reference

IDebugDocumentPosition2

IDebugDocument2