Share via


Debugger3.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. This member function 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.

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

Syntax

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

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.

Return Value

Type: EnvDTE.Expression
An Expression.

Implements

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

Remarks

GetExpression2 evaluates an expression based on the current 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

Debugger3 Interface

GetExpression2 Overload

EnvDTE90 Namespace