This documentation is archived and is not being maintained.

Debugger2.GetExpression2 Method 

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 (
	[InAttribute] string ExpressionText,
	[OptionalAttribute] [InAttribute] bool UseAutoExpandRules,
	[OptionalAttribute] [InAttribute] bool TreatAsStatement,
	[OptionalAttribute] [InAttribute] int Timeout
Expression GetExpression2 (
	/** @attribute InAttribute() */ String ExpressionText, 
	/** @attribute InAttribute() */ /** @attribute OptionalAttribute() */ boolean UseAutoExpandRules, 
	/** @attribute InAttribute() */ /** @attribute OptionalAttribute() */ boolean TreatAsStatement, 
	/** @attribute InAttribute() */ /** @attribute OptionalAttribute() */ int Timeout
function GetExpression2 (
	ExpressionText : String, 
	UseAutoExpandRules : boolean, 
	TreatAsStatement : boolean, 
	Timeout : int
) : Expression



The expression text to be evaluated.


true if the auto-expand rules should be used; otherwise, false.


true if the string is to be interpreted as a statement; otherwise false.


The timeout period in milliseconds.

Return Value

Always returns an expression.

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