Compartilhar via


IDebugSymbolProvider::GetContextFromAddress

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

This method maps a debug address into a document context.

Syntax

HRESULT GetContextFromAddress( 
   IDebugAddress*           pAddress,
   IDebugDocumentContext2** ppDocContext
);
int GetContextFromAddress(
   IDebugAddress              pAddress,
   out IDebugDocumentContext2 ppDocContext
);

Parameters

pAddress
[in] The debug address as represented by an IDebugAddress interface.

ppDocContext
[out] Returns a document context as represented by an IDebugDocumentContext2 interface.

Return Value

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

See also