Condividi tramite


IDebugActivateDocumentEvent2::GetDocumentContext

Gets the document context that describes the position in the document that is to be made active by the debug package.

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

Reference

IDebugActivateDocumentEvent2

IDebugDocumentContext2