Share via


DkmModuleInstance.Decompile Method

Definition

Overloads

Decompile()

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.

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

This API was introduced in Visual Studio 16 Update 5 (DkmApiVersion.VS16Update5).

Decompile(DkmWorkList, DkmCompletionRoutine<DkmDecompileAsyncResult>)

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.

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 16 Update 5 (DkmApiVersion.VS16Update5).

Decompile(DkmWorkList, 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 3 (DkmApiVersion.VS17Update3).

Decompile(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 3 (DkmApiVersion.VS17Update3).

Decompile()

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.

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

This API was introduced in Visual Studio 16 Update 5 (DkmApiVersion.VS16Update5).

public:
 void Decompile();
public void Decompile ();
member this.Decompile : unit -> unit
Public Sub Decompile ()

Applies to

Decompile(DkmWorkList, DkmCompletionRoutine<DkmDecompileAsyncResult>)

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.

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 16 Update 5 (DkmApiVersion.VS16Update5).

public:
 void Decompile(Microsoft::VisualStudio::Debugger::DkmWorkList ^ WorkList, Microsoft::VisualStudio::Debugger::DkmCompletionRoutine<Microsoft::VisualStudio::Debugger::Decompilation::DkmDecompileAsyncResult> ^ CompletionRoutine);
public void Decompile (Microsoft.VisualStudio.Debugger.DkmWorkList WorkList, Microsoft.VisualStudio.Debugger.DkmCompletionRoutine<Microsoft.VisualStudio.Debugger.Decompilation.DkmDecompileAsyncResult> CompletionRoutine);
member this.Decompile : Microsoft.VisualStudio.Debugger.DkmWorkList * Microsoft.VisualStudio.Debugger.DkmCompletionRoutine<Microsoft.VisualStudio.Debugger.Decompilation.DkmDecompileAsyncResult> -> unit
Public Sub Decompile (WorkList As DkmWorkList, CompletionRoutine As DkmCompletionRoutine(Of DkmDecompileAsyncResult))

Parameters

WorkList
DkmWorkList

WorkList to append the new work item to.

CompletionRoutine
DkmCompletionRoutine<DkmDecompileAsyncResult>

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

Decompile(DkmWorkList, 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 3 (DkmApiVersion.VS17Update3).

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

Parameters

WorkList
DkmWorkList

WorkList to append the new work item to.

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

Decompile(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 3 (DkmApiVersion.VS17Update3).

public void Decompile (out string? ErrorMessage, out int HR);
member this.Decompile : string * int -> unit
Public Sub Decompile (ByRef ErrorMessage As String, ByRef HR As Integer)

Parameters

ErrorMessage
String

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

HR
Int32

[Out] HResult to return to the caller.

Applies to