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

 

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.

Namespace:   EnvDTE80
Assembly:  EnvDTE80 (in EnvDTE80.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 string is to be interpreted as a statement; otherwise false.

Timeout
Type: System.Int32

The timeout period in milliseconds.

Return Value

Type: EnvDTE.Expression

Always returns an expression.

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

Return to top
Show: