IDebugActivateDocumentEvent2::GetDocumentContext

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 context that describes the position in the document that is to be made active by the debug package.

Syntax

HRESULT GetDocumentContext ( 
   IDebugDocumentContext2** ppDocContext
);
int GetDocumentContext ( 
   out IDebugDocumentContext2 ppDocContext
);

Parameters

ppDocContext
[out] Returns an IDebugDocumentContext2 object that represents a position in a source file document.

Remarks

This position might be used to show the caret, for example.

Return Value

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

See also