Share via


Debugger4.GetExpression3 Method

Evaluates an expression, similar to GetExpression(String, Boolean, Boolean, 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)

Syntax

'Declaration
Function GetExpression3 ( _
    ExpressionText As String, _
    StackFrame As StackFrame, _
    UseAutoExpandRules As Boolean, _
    TreatAsStatement As Boolean, _
    AllowAutoFuncEval As Boolean, _
    Timeout As Integer _
) As Expression
Expression GetExpression3(
    string ExpressionText,
    StackFrame StackFrame,
    bool UseAutoExpandRules,
    bool TreatAsStatement,
    bool AllowAutoFuncEval,
    int Timeout
)
Expression^ GetExpression3(
    [InAttribute] String^ ExpressionText, 
    [InAttribute] StackFrame^ StackFrame, 
    [InAttribute] bool UseAutoExpandRules, 
    [InAttribute] bool TreatAsStatement, 
    [InAttribute] bool AllowAutoFuncEval, 
    [InAttribute] int Timeout
)
abstract GetExpression3 : 
        ExpressionText:string * 
        StackFrame:StackFrame * 
        UseAutoExpandRules:bool * 
        TreatAsStatement:bool * 
        AllowAutoFuncEval:bool * 
        Timeout:int -> Expression 
function GetExpression3(
    ExpressionText : String, 
    StackFrame : StackFrame, 
    UseAutoExpandRules : boolean, 
    TreatAsStatement : boolean, 
    AllowAutoFuncEval : boolean, 
    Timeout : int
) : Expression

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.

Remarks

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.

.NET Framework Security

See Also

Reference

Debugger4 Interface

EnvDTE90a Namespace