Partager via


IDebugExpressionEvaluationCompleteEvent2

This interface is sent by the debug engine (DE) to the session debug manager (SDM) when asynchronous expression evaluation is complete.

IDebugExpressionEvaluationCompleteEvent2 : IUnknown

Notes for Implementers

The DE implements this interface to report completion of an expression evaluation started by a call to IDebugExpression2::EvaluateAsync. The IDebugEvent2 interface must be implemented on the same object as this interface. The SDM uses QueryInterface to access the IDebugEvent2 interface.

Notes for Callers

The DE creates and sends this event object to report the completion of an expression evaluation. The event is sent by using the IDebugEventCallback2 callback function that is supplied by the SDM when it attached to the program being debugged.

Methods in Vtable Order

The following table shows the methods of IDebugExpressionEvaluationCompleteEvent2.

Method

Description

IDebugExpressionEvaluationCompleteEvent2::GetExpression

Gets the original expression.

IDebugExpressionEvaluationCompleteEvent2::GetResult

Gets the result of expression evaluation.

Remarks

The DE must send this event, whether the evaluation was successful or not.

If the evaluation was not successful, the DEBUG_PROPINFO_VALUE and DEBUG_PROPINFO_ATTRIB flags will not be set in the DEBUG_PROPERTY_INFO structure that is returned by IDebugProperty2::GetPropertyInfo (the IDebugProperty2 object is created by the DE and returned in the IDebugExpressionEvaluationCompleteEvent2 event if the evaluation failed).

Requirements

Header: msdbg.h

Namespace: Microsoft.VisualStudio.Debugger.Interop

Assembly: Microsoft.VisualStudio.Debugger.Interop.dll

See Also

Reference

IDebugEvent2

IDebugEventCallback2

IDebugExpression2::EvaluateAsync

IDebugProperty2