次の方法で共有


DkmLanguageExpression.CompileDisplayAttribute Method

Definition

Compile the given DebuggerDisplayAttribute string. The resulting IL should return a string. For debugger display, there is no code context. Instead the compiler must do its binding based on a type token.

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 CompileDisplayAttribute(Microsoft::VisualStudio::Debugger::Clr::DkmClrModuleInstance ^ ModuleInstance, int Token, [Runtime::InteropServices::Out] System::String ^ % Error, [Runtime::InteropServices::Out] Microsoft::VisualStudio::Debugger::Evaluation::ClrCompilation::DkmCompiledClrInspectionQuery ^ % Result);
public void CompileDisplayAttribute (Microsoft.VisualStudio.Debugger.Clr.DkmClrModuleInstance ModuleInstance, int Token, out string Error, out Microsoft.VisualStudio.Debugger.Evaluation.ClrCompilation.DkmCompiledClrInspectionQuery Result);
public void CompileDisplayAttribute (Microsoft.VisualStudio.Debugger.Clr.DkmClrModuleInstance ModuleInstance, int Token, out string? Error, out Microsoft.VisualStudio.Debugger.Evaluation.ClrCompilation.DkmCompiledClrInspectionQuery? Result);
member this.CompileDisplayAttribute : Microsoft.VisualStudio.Debugger.Clr.DkmClrModuleInstance * int * string * DkmCompiledClrInspectionQuery -> unit
Public Sub CompileDisplayAttribute (ModuleInstance As DkmClrModuleInstance, Token As Integer, ByRef Error As String, ByRef Result As DkmCompiledClrInspectionQuery)

Parameters

ModuleInstance
DkmClrModuleInstance

[In] The module instance containing the type the DebuggerDisplayAttribute applies to.

Token
Int32

[In] The metadata token of the type the DebuggerDisplayAttribute applies to.

Error
String

[Out,Optional] Indicates any error compiling the expression. If the code compiles successfully, this value should be null. In error cases, this value indicates the reason for the compile error and the caller should return S_OK.

Result
DkmCompiledClrInspectionQuery

[Out,Optional] The compiled display attribute. If Result is null, and Error is not null, there was a compile error.

Applies to