次の方法で共有


Debugger2.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.

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 string is to be interpreted as a statement; otherwise false.

Timeout
Int32

The timeout period in milliseconds.

Returns

Always returns an expression.

Attributes

Remarks

GetExpression2 does not throw an exception. If an error occurs, the error message is returned in the expression.

Applies to