Class PEImageBuildResult
- Namespace
- AsmResolver.DotNet.Builder
- Assembly
- AsmResolver.DotNet.dll
Describes the result of the construction of a PEImage from a ModuleDefinition.
public class PEImageBuildResult
- Inheritance
-
PEImageBuildResult
- Inherited Members
Constructors
PEImageBuildResult(PEImage?, DiagnosticBag, ITokenMapping)
Creates a new instance of the PEImageBuildResult class.
[Obsolete]
public PEImageBuildResult(PEImage? image, DiagnosticBag diagnosticBag, ITokenMapping tokenMapping)
Parameters
image
PEImageThe constructed image, or
null
if the construction failed.diagnosticBag
DiagnosticBagThe diagnostics that were collected during the construction of the image.
tokenMapping
ITokenMappingAn object that maps metadata members to their newly assigned tokens.
PEImageBuildResult(PEImage?, IErrorListener, ITokenMapping)
Creates a new instance of the PEImageBuildResult class.
public PEImageBuildResult(PEImage? image, IErrorListener errorListener, ITokenMapping tokenMapping)
Parameters
image
PEImageThe constructed image, or
null
if the construction failed.errorListener
IErrorListenerThe diagnostics that were collected during the construction of the image.
tokenMapping
ITokenMappingAn object that maps metadata members to their newly assigned tokens.
Properties
ConstructedImage
Gets the constructed image, or null
if the construction failed.
public PEImage? ConstructedImage { get; }
Property Value
DiagnosticBag
Gets the bag containing the diagnostics that were collected during the construction of the image (if available).
[Obsolete("Use the ErrorListener property instead.")]
public DiagnosticBag? DiagnosticBag { get; }
Property Value
ErrorListener
Gets the error listener handling the diagnostics that were collected during the construction of the image.
public IErrorListener ErrorListener { get; }
Property Value
HasFailed
Gets a value indicating whether the image was constructed successfully or not.
public bool HasFailed { get; }
Property Value
TokenMapping
Gets an object that maps metadata members to their newly assigned tokens.
public ITokenMapping TokenMapping { get; }