Debugger5.GetExpression2 方法 (String, Boolean, Boolean, Int32)

根据当前的堆栈帧计算表达式。 如果表达式可以进行分析但无法计算,则将返回不包含有效值的对象。 此方法与 GetExpression 类似,只是它另外还有一个布尔型参数,可以将此参数设置为 true,以指示表达式的计算结果为一个语句。

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

语法

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

参数

  • ExpressionText
    类型:System.String
    要计算的表达式文本。
  • UseAutoExpandRules
    类型:System.Boolean
    如果应使用自动展开规则,则为 true;否则为 false。
  • TreatAsStatement
    类型:System.Boolean
    如果将表达式文本视为单个语句,则该值为 true;否则为 false。
  • Timeout
    类型:System.Int32
    超时时间(以毫秒为单位)。

返回值

类型:EnvDTE.Expression
一个 Expression

实现

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

.NET Framework 安全性

请参见

参考

Debugger5 接口

GetExpression2 重载

EnvDTE100 命名空间