IDkmClrDecompiler175.DecompileDocument Method

Definition

Decompiles the code for a document 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.

public void DecompileDocument(Microsoft.VisualStudio.Debugger.Clr.DkmClrModuleInstance clrModuleInstance, string documentPath, out string? errorMessage, out int hR);
abstract member DecompileDocument : Microsoft.VisualStudio.Debugger.Clr.DkmClrModuleInstance * string * string * int -> unit
Public Sub DecompileDocument (clrModuleInstance As DkmClrModuleInstance, documentPath As String, ByRef errorMessage As String, ByRef hR As Integer)

Parameters

clrModuleInstance
DkmClrModuleInstance

[In] 'DkmClrModuleInstance' is used for modules which are loaded into the Common Language Runtime.

documentPath
String

[In] The module-specific path to the document 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