Debugger4.GetExpression2(String, Boolean, Boolean, Int32) Method

Definition

Evaluates an expression based on the current stack frame. If the expression can be parsed but not evaluated, an object is returned but does not contain a valid value. This method is similar to GetExpression(String, Boolean, Int32) but with an additional Boolean parameter, which can be set to true to indicate that the expression is to be evaluated as a statement.

EnvDTE::Expression GetExpression2(std::wstring const & ExpressionText, bool UseAutoExpandRules = false, bool TreatAsStatement = false, int Timeout = -1);
[System.Runtime.InteropServices.DispId(1004)]
public EnvDTE.Expression GetExpression2 (string ExpressionText, bool UseAutoExpandRules = false, bool TreatAsStatement = false, int Timeout = -1);
[<System.Runtime.InteropServices.DispId(1004)>]
abstract member GetExpression2 : string * bool * bool * int -> EnvDTE.Expression
Public Function GetExpression2 (ExpressionText As String, Optional UseAutoExpandRules As Boolean = false, Optional TreatAsStatement As Boolean = false, Optional Timeout As Integer = -1) As Expression

Parameters

ExpressionText
String

The expression text to be evaluated.

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.

Timeout
Int32

The timeout period in milliseconds.

Returns

An Expression.

Implements

Attributes

Remarks

See GetExpression2.

Applies to