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)

Syntax

'Declaration
Function GetExpression2 ( _
    ExpressionText As String, _
    UseAutoExpandRules As Boolean, _
    TreatAsStatement As Boolean, _
    Timeout As Integer _
) As Expression
'Usage
Dim instance As Debugger2 
Dim ExpressionText As String 
Dim UseAutoExpandRules As Boolean 
Dim TreatAsStatement As Boolean 
Dim Timeout As Integer 
Dim returnValue As Expression 

returnValue = instance.GetExpression2(ExpressionText, _
    UseAutoExpandRules, TreatAsStatement, _
    Timeout)
Expression GetExpression2(
    string ExpressionText,
    bool UseAutoExpandRules,
    bool TreatAsStatement,
    int Timeout
)
Expression^ GetExpression2(
    [InAttribute] String^ ExpressionText, 
    [InAttribute] bool UseAutoExpandRules, 
    [InAttribute] bool TreatAsStatement, 
    [InAttribute] int Timeout
)
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 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.

Remarks

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

.NET Framework Security

See Also

Reference

Debugger2 Interface

Debugger2 Members

EnvDTE80 Namespace