DkmLanguageInstructionAddress.CompileCondition 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
将输入断点条件编译为可在目标计算机上计算的检查查询。 如果断点条件使用 DkmBreakpointConditionOperator,则表达式计算器应该要求指定的条件的计算结果为布尔值。 创建的查询必须只返回单个结果。 对于 BreakWhenTrue 条件,此值必须为4字节或1字节值,并且任何非零值都视为 true。
位置约束:必须从 IDE 组件 (组件级别 100000) 中调用 API > 。
public:
Microsoft::VisualStudio::Debugger::Evaluation::DkmCompiledInspectionQuery ^ CompileCondition(Microsoft::VisualStudio::Debugger::Breakpoints::DkmBreakpointCondition ^ Condition, [Runtime::InteropServices::Out] System::String ^ % ErrorText);
public Microsoft.VisualStudio.Debugger.Evaluation.DkmCompiledInspectionQuery CompileCondition (Microsoft.VisualStudio.Debugger.Breakpoints.DkmBreakpointCondition Condition, out string ErrorText);
member this.CompileCondition : Microsoft.VisualStudio.Debugger.Breakpoints.DkmBreakpointCondition * string -> Microsoft.VisualStudio.Debugger.Evaluation.DkmCompiledInspectionQuery
Public Function CompileCondition (Condition As DkmBreakpointCondition, ByRef ErrorText As String) As DkmCompiledInspectionQuery
参数
- Condition
- DkmBreakpointCondition
中要编译的断点条件。
- ErrorText
- String
[Out,Optional]如果编译失败,则表明原因。 如果编译成功,则此值应为 null。 如果编译失败,则 (本机代码) 返回 S_FALSE。
返回
[Out,Optional]编译的结果。 如果编译失败,则为 null。 在这种情况下,ErrorText 应指示失败的原因。