Share via


DkmClrModuleInstance.DecompileMethods Method

Definition

Overloads

DecompileMethods(DkmWorkList, ReadOnlyCollection<DkmClrMethodId>, DkmCompletionRoutine<DkmDecompileAsyncResult173>)

Decompiles the code for the methods into C# and updates the symbol file associated with the containing module with the necessary debugging information and embedded source. 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 5 (DkmApiVersion.VS17Update5).

DecompileMethods(ReadOnlyCollection<DkmClrMethodId>, String, Int32)

Decompiles the code for the methods into C# and updates the symbol file associated with the containing module with the necessary debugging information and embedded source. 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 5 (DkmApiVersion.VS17Update5).

DecompileMethods(DkmWorkList, ReadOnlyCollection<DkmClrMethodId>, DkmCompletionRoutine<DkmDecompileAsyncResult173>)

Decompiles the code for the methods into C# and updates the symbol file associated with the containing module with the necessary debugging information and embedded source. 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 5 (DkmApiVersion.VS17Update5).

public void DecompileMethods (Microsoft.VisualStudio.Debugger.DkmWorkList WorkList, System.Collections.ObjectModel.ReadOnlyCollection<Microsoft.VisualStudio.Debugger.Clr.DkmClrMethodId> Methods, Microsoft.VisualStudio.Debugger.DkmCompletionRoutine<Microsoft.VisualStudio.Debugger.Decompilation.DkmDecompileAsyncResult173> CompletionRoutine);
member this.DecompileMethods : Microsoft.VisualStudio.Debugger.DkmWorkList * System.Collections.ObjectModel.ReadOnlyCollection<Microsoft.VisualStudio.Debugger.Clr.DkmClrMethodId> * Microsoft.VisualStudio.Debugger.DkmCompletionRoutine<Microsoft.VisualStudio.Debugger.Decompilation.DkmDecompileAsyncResult173> -> unit
Public Sub DecompileMethods (WorkList As DkmWorkList, Methods As ReadOnlyCollection(Of DkmClrMethodId), CompletionRoutine As DkmCompletionRoutine(Of DkmDecompileAsyncResult173))

Parameters

WorkList
DkmWorkList

WorkList to append the new work item to.

Methods
ReadOnlyCollection<DkmClrMethodId>

[In] The collection of methods that should be decompiled.

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

DecompileMethods(ReadOnlyCollection<DkmClrMethodId>, String, Int32)

Decompiles the code for the methods into C# and updates the symbol file associated with the containing module with the necessary debugging information and embedded source. 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 5 (DkmApiVersion.VS17Update5).

public void DecompileMethods (System.Collections.ObjectModel.ReadOnlyCollection<Microsoft.VisualStudio.Debugger.Clr.DkmClrMethodId> Methods, out string? ErrorMessage, out int HR);
member this.DecompileMethods : System.Collections.ObjectModel.ReadOnlyCollection<Microsoft.VisualStudio.Debugger.Clr.DkmClrMethodId> * string * int -> unit
Public Sub DecompileMethods (Methods As ReadOnlyCollection(Of DkmClrMethodId), ByRef ErrorMessage As String, ByRef HR As Integer)

Parameters

Methods
ReadOnlyCollection<DkmClrMethodId>

[In] The collection of methods that should be decompiled.

ErrorMessage
String

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

HR
Int32

[Out] HResult to return to the caller.

Applies to