IDebugDocumentContext2::GetDocument

Gets the document that contains this document context.

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

Parameters

  • ppDocument
    [out] Returns an IDebugDocument2 object that represents the document that contains this document context.

Return Value

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

Remarks

This method is for those debug engines that supply documents directly to the IDE. Otherwise, this method should return E_NOTIMPL.

See Also

Concepts

IDebugDocumentContext2

IDebugDocument2