Debugger5.GetExpression3 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
计算表达式,类似于 EnvDTE90.Debugger2.GetExpression(System.String,System.Boolean,System.Boolean,System.Int32) 。 但是,此方法允许调用者指定将发生计算的堆栈帧。 它还允许调用者指定是否应发生属性和隐式函数调用的自动求值。
EnvDTE::Expression GetExpression3(std::wstring const & ExpressionText, EnvDTE::StackFrame const & StackFrame, bool UseAutoExpandRules = true, bool TreatAsStatement = true, bool AllowAutoFuncEval = true, int Timeout = -1);
[System.Runtime.InteropServices.DispId(3101)]
public EnvDTE.Expression GetExpression3 (string ExpressionText, EnvDTE.StackFrame StackFrame, bool UseAutoExpandRules = true, bool TreatAsStatement = true, bool AllowAutoFuncEval = true, int Timeout = -1);
[<System.Runtime.InteropServices.DispId(3101)>]
abstract member GetExpression3 : string * EnvDTE.StackFrame * bool * bool * bool * int -> EnvDTE.Expression
Public Function GetExpression3 (ExpressionText As String, Optional StackFrame As StackFrame, Optional UseAutoExpandRules As Boolean = true, Optional TreatAsStatement As Boolean = true, Optional AllowAutoFuncEval As Boolean = true, Optional Timeout As Integer = -1) As Expression
参数
- ExpressionText
- String
要计算的表达式文本。
- StackFrame
- StackFrame
要计算表达式的堆栈帧。 该堆栈帧可以在当前正在调试的任何进程的任何线程中,当且仅当进程处于中断模式。
- UseAutoExpandRules
- Boolean
true 如果应使用自动扩展规则,则为;否则为 false 。
- TreatAsStatement
- Boolean
true 如果应将表达式文本视为单个语句,则为; 否则为。否则为 false 。
- AllowAutoFuncEval
- Boolean
true 如果应执行属性和隐式函数调用的自动求值,则为;否则为 false 。
- Timeout
- Int32
超时时间(以毫秒为单位)。
返回
实现
- 属性
注解
GetExpression3 基于指定的堆栈帧计算表达式。 如果可以分析但无法计算表达式,则将返回不包含有效值的对象。