DkmLanguageExpression.CompileAssignment Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Compile the given expression and generate code to assign the value of the expression to an L-Value.
Location constraint: API must be called from an IDE component (component level > 100,000).
This API was introduced in Visual Studio 14 RTM (DkmApiVersion.VS14RTM).
public:
void CompileAssignment(Microsoft::VisualStudio::Debugger::Clr::DkmClrInstructionAddress ^ InstructionAddress, Microsoft::VisualStudio::Debugger::Evaluation::DkmEvaluationResult ^ LValue, [Runtime::InteropServices::Out] System::String ^ % Error, [Runtime::InteropServices::Out] Microsoft::VisualStudio::Debugger::Evaluation::ClrCompilation::DkmCompiledClrInspectionQuery ^ % Result);
public void CompileAssignment (Microsoft.VisualStudio.Debugger.Clr.DkmClrInstructionAddress InstructionAddress, Microsoft.VisualStudio.Debugger.Evaluation.DkmEvaluationResult LValue, out string Error, out Microsoft.VisualStudio.Debugger.Evaluation.ClrCompilation.DkmCompiledClrInspectionQuery Result);
public void CompileAssignment (Microsoft.VisualStudio.Debugger.Clr.DkmClrInstructionAddress InstructionAddress, Microsoft.VisualStudio.Debugger.Evaluation.DkmEvaluationResult LValue, out string? Error, out Microsoft.VisualStudio.Debugger.Evaluation.ClrCompilation.DkmCompiledClrInspectionQuery? Result);
member this.CompileAssignment : Microsoft.VisualStudio.Debugger.Clr.DkmClrInstructionAddress * Microsoft.VisualStudio.Debugger.Evaluation.DkmEvaluationResult * string * DkmCompiledClrInspectionQuery -> unit
Public Sub CompileAssignment (InstructionAddress As DkmClrInstructionAddress, LValue As DkmEvaluationResult, ByRef Error As String, ByRef Result As DkmCompiledClrInspectionQuery)
Parameters
- InstructionAddress
- DkmClrInstructionAddress
[In] The code context to use for compiling the expression.
- LValue
- DkmEvaluationResult
[In] The L-value of the assignment. This is the result of a previous evaluation.
- Error
- String
[Out,Optional] Indicates any error compiling the expression or the reason the assignment is invalid. If the compiler can generate code for the assignment, this value should be null. In error cases, this value indicates the reason for the compile error and the caller should return S_OK.
[Out,Optional] The compiled assignment operation. If Result is null, and Error is not null, there was a compile error.