共用方式為


IDebugObject::GetManagedDebugObject

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

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 IDebugFunctionObject::Evaluate is eliminated.

See Also

Reference

IDebugObject

IDebugManagedObject