Debugger5.GetExpression3 方法 (String, StackFrame, Boolean, Boolean, Boolean, Int32)

计算表达式,与 GetExpression(String, Boolean, Boolean, Int32) 类似。 但是,此方法允许调用方指定将执行计算操作的堆栈帧。 它还允许调用方指定是否应执行属性和隐式函数调用的自动计算。

命名空间:  EnvDTE100
程序集:  EnvDTE100(在 EnvDTE100.dll 中)

语法

声明
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

参数

  • ExpressionText
    类型:System.String
    要计算的表达式文本。
  • StackFrame
    类型:EnvDTE.StackFrame
    要计算表达式的堆栈帧。当且仅当进程处于中断模式时,此堆栈帧才可以处于当前正在调试的任何进程的任何线程中。
  • UseAutoExpandRules
    类型:System.Boolean
    如果应使用自动展开规则,则为 true;否则为 false。
  • TreatAsStatement
    类型:System.Boolean
    如果将表达式文本视为单个语句,则该值为 true;否则为 false。
  • AllowAutoFuncEval
    类型:System.Boolean
    如果应执行属性和隐式函数调用的自动计算,则为 true;否则为 false。
  • Timeout
    类型:System.Int32
    超时时间(以毫秒为单位)。

返回值

类型:EnvDTE.Expression
一个 Expression

实现

Debugger4.GetExpression3(String, StackFrame, Boolean, Boolean, Boolean, Int32)

备注

GetExpression3 根据指定的堆栈帧计算表达式。 如果表达式可以进行分析但无法计算,则将返回不包含有效值的对象。

.NET Framework 安全性

请参见

参考

Debugger5 接口

GetExpression3 重载

EnvDTE100 命名空间