Share via


DkmClrModuleInstance.Decompile Method

Definition

Overloads

Decompile(DkmDecompilerMode, String, Int32)

Decompiles the code for a module into C# and creates a new portable PDB with this source embedded. All modules that share this symbol file will begin using these updated symbols. Implementations should return S_OK on failure and return the actual HRESULT and any additional error information via the 'HR' and 'ErrorMessage' parameters.

Location constraint: API must be called from an IDE component (component level > 100,000).

This API was introduced in Visual Studio 17 Update 7 (DkmApiVersion.VS17Update7).

Decompile(DkmWorkList, DkmDecompilerMode, DkmCompletionRoutine<DkmDecompileAsyncResult173>)

Decompiles the code for a module into C# and creates a new portable PDB with this source embedded. All modules that share this symbol file will begin using these updated symbols. Implementations should return S_OK on failure and return the actual HRESULT and any additional error information via the 'HR' and 'ErrorMessage' parameters.

This method will append a new work item to the specified work list, and return once the work item has been appended. The actual processing of the work item is asynchronous. The caller will be notified that the request is complete through the completion routine.

Location constraint: API must be called from an IDE component (component level > 100,000).

This API was introduced in Visual Studio 17 Update 7 (DkmApiVersion.VS17Update7).

Decompile(DkmDecompilerMode, String, Int32)

Decompiles the code for a module into C# and creates a new portable PDB with this source embedded. All modules that share this symbol file will begin using these updated symbols. Implementations should return S_OK on failure and return the actual HRESULT and any additional error information via the 'HR' and 'ErrorMessage' parameters.

Location constraint: API must be called from an IDE component (component level > 100,000).

This API was introduced in Visual Studio 17 Update 7 (DkmApiVersion.VS17Update7).

public void Decompile (Microsoft.VisualStudio.Debugger.DkmDecompilerMode Mode, out string? ErrorMessage, out int HR);
override this.Decompile : Microsoft.VisualStudio.Debugger.DkmDecompilerMode * string * int -> unit
Public Sub Decompile (Mode As DkmDecompilerMode, ByRef ErrorMessage As String, ByRef HR As Integer)

Parameters

Mode
DkmDecompilerMode

[In] Indicates whether the module should be decompiled immediately or on demand.

ErrorMessage
String

[Out,Optional] Details on errors that occurred during decompilation, if available.

HR
Int32

[Out] HResult to return to the caller.

Applies to

Decompile(DkmWorkList, DkmDecompilerMode, DkmCompletionRoutine<DkmDecompileAsyncResult173>)

Decompiles the code for a module into C# and creates a new portable PDB with this source embedded. All modules that share this symbol file will begin using these updated symbols. Implementations should return S_OK on failure and return the actual HRESULT and any additional error information via the 'HR' and 'ErrorMessage' parameters.

This method will append a new work item to the specified work list, and return once the work item has been appended. The actual processing of the work item is asynchronous. The caller will be notified that the request is complete through the completion routine.

Location constraint: API must be called from an IDE component (component level > 100,000).

This API was introduced in Visual Studio 17 Update 7 (DkmApiVersion.VS17Update7).

public void Decompile (Microsoft.VisualStudio.Debugger.DkmWorkList WorkList, Microsoft.VisualStudio.Debugger.DkmDecompilerMode Mode, Microsoft.VisualStudio.Debugger.DkmCompletionRoutine<Microsoft.VisualStudio.Debugger.Decompilation.DkmDecompileAsyncResult173> CompletionRoutine);
override this.Decompile : Microsoft.VisualStudio.Debugger.DkmWorkList * Microsoft.VisualStudio.Debugger.DkmDecompilerMode * Microsoft.VisualStudio.Debugger.DkmCompletionRoutine<Microsoft.VisualStudio.Debugger.Decompilation.DkmDecompileAsyncResult173> -> unit
Public Sub Decompile (WorkList As DkmWorkList, Mode As DkmDecompilerMode, CompletionRoutine As DkmCompletionRoutine(Of DkmDecompileAsyncResult173))

Parameters

WorkList
DkmWorkList

WorkList to append the new work item to.

Mode
DkmDecompilerMode

[In] Indicates whether the module should be decompiled immediately or on demand.

CompletionRoutine
DkmCompletionRoutine<DkmDecompileAsyncResult173>

Routine to fire when the request is complete. If the request is successfully appended to the work list, this will always fire (including when the operation is canceled). This will never fire if appending the work item fails.

Applies to