IDebugObject::GetManagedDebugObject

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

Creates a copy of the managed object in the address space of the debug engine.

Syntax

HRESULT GetManagedDebugObject( 
   IDebugManagedObject** ppObject
);
int GetManagedDebugObject(
   out IDebugManagedObject ppObject
);

Parameters

ppObject
[out] Returns an IDebugManagedObject object representing the newly created managed object.

Return Value

If successful, returns S_OK; otherwise, returns an error code. Returns E_FAIL if this IDebugObject does not represent a managed value class instance.

Remarks

This IDebugObject object must represent a managed value class instance, such as a System.Decimal instance. By having a local copy, the overhead of calling Evaluate is eliminated.

See also