PostSharp SDK 2023.0 / / Class Reference / Post­Sharp.​Sdk.​Binary Namespace / Image­Properties Class

ImageProperties Class

Represents PE header of a .NET assembly.
Inheritance Hierarchy
System.Object
  PostSharp.Sdk.Binary.ImageProperties

Namespace:  PostSharp.Sdk.Binary
Assembly:  PostSharp.Compiler.Engine (in PostSharp.Compiler.Engine.dll) Version: 2023.0.3.0 (2023.0.3.0)
Syntax
C#
public class ImageProperties : ICloneable

The ImageProperties type exposes the following members.

Constructors
  NameDescription
Public methodImageProperties
Initializes an empty instance.
Properties
  NameDescription
Public propertyAttributes
Gets the attributes of the PE image.
Public propertyBaseAddress
Gets or sets the ImageBase value in the NT Optional header.
Public propertyFileAlignment
Gets or sets the FileAlignment value in the NT Optional header.
Public propertyHeapCommit
Gets or sets the size of heap commit specified in the PE file.
Public propertyHeapReserve
Gets or sets the size of heap reserver specified in the PE file.
Public propertyImageMajorVersion
Gets or sets the major version of the image specified in the PE file.
Public propertyImageMinorVersion
Gets or sets the minor version of the image specified in the PE file.
Public propertyKind
Gets or sets the PeKind information from the PE headers.
Public propertyLargeAddressAware
Public propertyLinkerMajorVersion
Gets or sets the major version of the linker specified in the PE file.
Public propertyLinkerMinorVersion
Gets or sets the minor version of the linker specified in the PE file.
Public propertyMetadataProperties
Public propertyOperatingSystemMajorVersion
Gets or sets the major version of the operating system specified in the PE file.
Public propertyOperatingSystemMinorVersion
Gets or sets the minor version of the subsystem specified in the PE file.
Public propertyRequiresAppContainer
Gets or sets a value indicating whether the image should be executed in an app container.
Public propertyRuntimeMajorVersion
Gets or sets the RuntimeMajorVersion field of the CLI header.
Public propertyRuntimeMinorVersion
Gets or sets the RuntimeMinorVersion field of the CLI header.
Public propertySectionAlignment
Gets or sets the SectionAlignment value in the NT Optional header.
Public propertyStackCommit
Gets or sets the size of stack commit specified in the PE file.
Public propertyStackReserve
Gets or sets the size of stack reserve specified in the PE file.
Public propertySubsystem
Gets or sets the subsystem type specified in the PE file (library, console executable, graphic executable).
Public propertySubsystemMajorVersion
Gets or sets the major version of the subsystem specified in the PE file.
Public propertySubsystemMinorVersion
Gets or sets the minor version of the subsystem specified in the PE file.
Public propertySupportsControlFlowGuard
Gets or sets a value indication whether the image supports Control Flow Guard.
Public propertySupportsHighEntropyVirtualAddresses
Gets or sets a value indicating whether high entropy virtual addresses are supported by the image.
Public propertyTargetMachine
Gets or sets the ImageFileMachine information from the PE headers.
Methods
  NameDescription
Public methodClone
Public methodEquals
Determines whether the specified object is equal to the current object.
(Inherited from Object.)
Protected methodFinalize
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object.)
Public methodGetHashCode
Serves as the default hash function.
(Inherited from Object.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
See Also