Debugger4::GetExpression3 Method (String^, StackFrame^, Boolean, Boolean, Boolean, Int32)

 

Evaluates an expression, similar to M:EnvDTE90.Debugger2.GetExpression(System.String,System.Boolean,System.Boolean,System.Int32). However, this method allows the caller to specify the stack frame that the evaluation will occur on. It also allows the caller to specify whether automatic evaluation of properties and implicit function calls should occur.

Namespace:   EnvDTE90a
Assembly:  EnvDTE90a (in EnvDTE90a.dll)

Expression^ GetExpression3(
	String^ ExpressionText,
	StackFrame^ StackFrame = null,
	bool UseAutoExpandRules = false,
	bool TreatAsStatement = false,
	bool AllowAutoFuncEval = true,
	int Timeout = -1
)

Parameters

ExpressionText
Type: System::String^

The expression text to be evaluated.

StackFrame
Type: EnvDTE::StackFrame^

The stack frame where the expression is to be evaluated. This stack frame can be in any thread of any process that is currently being debugged, if and only if the process is in break mode.

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.

AllowAutoFuncEval
Type: System::Boolean

true if automatic evaluation of properties and implicit function calls should be performed; otherwise, false.

Timeout
Type: System::Int32

The timeout period in milliseconds.

Return Value

Type: EnvDTE::Expression^

An Expression.

GetExpression3 evaluates an expression based on the specified stack frame. If the expression can be parsed but not evaluated, an object is returned but will not contain a valid value.

Return to top
Show: