IDebugObject::GetMemoryContext

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 memory context that represents the address of the value of the object.

Syntax

HRESULT GetMemoryContext( 
   IDebugMemoryContext2** pContext
);
int GetMemoryContext(
   ref IDebugMemoryContext2 pContext
);

Parameters

pContext
[out] Returns an IDebugMemoryContext2 object representing the address of the value of the object.

Return Value

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

Remarks

The returned memory context specifies the address of the value as represented by this IDebugObject object.

See also