Debugger4::GetExpression2 Method (String^, Boolean, Boolean, Int32)
Visual Studio 2015
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 but with an additional Boolean parameter, which can be set to true to indicate that the expression is to be evaluated as a statement.
Assembly: EnvDTE90a (in EnvDTE90a.dll)
Expression^ GetExpression2( String^ ExpressionText, bool UseAutoExpandRules = false, bool TreatAsStatement = false, int Timeout = -1 )
Parameters
- ExpressionText
-
Type:
System::String^
The expression text to be evaluated.
- UseAutoExpandRules
-
Type:
System::Boolean
true if the auto-expand rules should be used; otherwise, false.
- TreatAsStatement
-
Type:
System::Boolean
true if the expression text should be treated as a single statement; otherwise, false.
- Timeout
-
Type:
System::Int32
The timeout period in milliseconds.
Show: