Compartir a través de


IDebugDocumentContext2::GetDocument

Applies to: yesVisual Studio noVisual 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

Gets the document that contains this document context.

Syntax

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