Freigeben über


Debugger5.GetExpression3 Method

Definition

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, bool UseAutoExpandRules = true, bool TreatAsStatement = true, bool AllowAutoFuncEval = true, int Timeout = -1);
[System.Runtime.InteropServices.DispId(3101)]
public EnvDTE.Expression GetExpression3 (string ExpressionText, EnvDTE.StackFrame StackFrame, bool UseAutoExpandRules = true, bool TreatAsStatement = true, 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, Optional UseAutoExpandRules As Boolean = true, Optional TreatAsStatement As Boolean = true, 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.

Implements

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.

Applies to