Debugger4.GetExpression3 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.
Evaluates an expression, similar to EnvDTE90.Debugger2.GetExpression(System.String,System.Boolean,System.Boolean,System.Int32). However, this method allows the caller to specify the stack frame that the evaluation will occur on. It also allows the caller to specify whether automatic evaluation of properties and implicit function calls should occur.
EnvDTE::Expression GetExpression3(std::wstring const & ExpressionText, EnvDTE::StackFrame const & StackFrame = null, bool UseAutoExpandRules = false, bool TreatAsStatement = false, bool AllowAutoFuncEval = true, int Timeout = -1);
[System.Runtime.InteropServices.DispId(3101)]
public EnvDTE.Expression GetExpression3 (string ExpressionText, EnvDTE.StackFrame StackFrame = default, bool UseAutoExpandRules = false, bool TreatAsStatement = false, bool AllowAutoFuncEval = true, int Timeout = -1);
[<System.Runtime.InteropServices.DispId(3101)>]
abstract member GetExpression3 : string * EnvDTE.StackFrame * bool * bool * bool * int -> EnvDTE.Expression
Public Function GetExpression3 (ExpressionText As String, Optional StackFrame As StackFrame = Nothing, Optional UseAutoExpandRules As Boolean = false, Optional TreatAsStatement As Boolean = false, Optional AllowAutoFuncEval As Boolean = true, Optional Timeout As Integer = -1) As Expression
Parameters
- ExpressionText
- String
The expression text to be evaluated.
- StackFrame
- StackFrame
The stack frame where the expression is to be evaluated. This stack frame can be in any thread of any process that is currently being debugged, if and only if the process is in break mode.
- UseAutoExpandRules
- Boolean
true
if the auto-expand rules should be used; otherwise, false
.
- TreatAsStatement
- Boolean
true
if the expression text should be treated as a single statement; otherwise, false
.
- AllowAutoFuncEval
- Boolean
true
if automatic evaluation of properties and implicit function calls should be performed; otherwise, false
.
- Timeout
- Int32
The timeout period in milliseconds.
Returns
An Expression.
- Attributes
Remarks
GetExpression3 evaluates an expression based on the specified stack frame. If the expression can be parsed but not evaluated, an object is returned but will not contain a valid value.