DkmVisualizedExpression.EvaluateExpressionCallback Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
This method allows a visualizer addin use the expression evaluator to compile and evaluate the default value for an expression. The addin can use this result as-is or override fields by creating a new result. The addin can also choose to use the expression evaluator for expansion using the the get children callbacks.
public:
void EvaluateExpressionCallback(Microsoft::VisualStudio::Debugger::Evaluation::DkmInspectionContext ^ InspectionContext, Microsoft::VisualStudio::Debugger::Evaluation::DkmLanguageExpression ^ Expression, Microsoft::VisualStudio::Debugger::CallStack::DkmStackWalkFrame ^ StackFrame, [Runtime::InteropServices::Out] Microsoft::VisualStudio::Debugger::Evaluation::DkmEvaluationResult ^ % ResultObject);
public void EvaluateExpressionCallback (Microsoft.VisualStudio.Debugger.Evaluation.DkmInspectionContext InspectionContext, Microsoft.VisualStudio.Debugger.Evaluation.DkmLanguageExpression Expression, Microsoft.VisualStudio.Debugger.CallStack.DkmStackWalkFrame StackFrame, out Microsoft.VisualStudio.Debugger.Evaluation.DkmEvaluationResult ResultObject);
member this.EvaluateExpressionCallback : Microsoft.VisualStudio.Debugger.Evaluation.DkmInspectionContext * Microsoft.VisualStudio.Debugger.Evaluation.DkmLanguageExpression * Microsoft.VisualStudio.Debugger.CallStack.DkmStackWalkFrame * DkmEvaluationResult -> unit
Public Sub EvaluateExpressionCallback (InspectionContext As DkmInspectionContext, Expression As DkmLanguageExpression, StackFrame As DkmStackWalkFrame, ByRef ResultObject As DkmEvaluationResult)
Parameters
- InspectionContext
- DkmInspectionContext
[In] The inspection context to use for this evaluation.
- Expression
- DkmLanguageExpression
[In] The expression the visualizer addin to would like the expression evaluator to evaluate.
- StackFrame
- DkmStackWalkFrame
[In] Stack frame to evaluate the expression in.
- ResultObject
- DkmEvaluationResult
[Out] Object containing the result of the evaluation.
Exceptions
E_PROCESS_DESTROYED indicates that the process exited while attempting to evaluate.