Jaa


IDebugManagedObject

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

Important

In Visual Studio 2015, this way of implementing expression evaluators is deprecated. For information about implementing CLR expression evaluators, please see CLR Expression Evaluators and Managed Expression Evaluator Sample.

This interface enables the expression evaluator (EE) to call properties or methods on value class instances (for example, System.Decimal) and to set their value without calling Evaluate on the program being debugged.

Syntax

IDebugManagedObject : IDebugObject

Notes for Implementers

An expression evaluator implements this interface to represent a managed code object such as a variable.

Notes for Callers

To obtain this interface, call GetManagedDebugObject on an IDebugObject that represents an instance of a value class.

Methods in Vtable Order

In addition to the methods inherited from IDebugObject, the IDebugManagedObject interface exposes the following methods.

Method Description
GetManagedObject Returns an interface that represents the managed code object and from which any appropriate managed code interface can be obtained.
SetFromManagedObject Sets the value of this object to the value of a specified managed code object.

Remarks

An expression evaluator uses this interface to store a managed code object in a parse tree.

Requirements

Header: ee.h

Namespace: Microsoft.VisualStudio.Debugger.Interop

Assembly: Microsoft.VisualStudio.Debugger.Interop.dll

See also