<PackageReference Include="System.Reflection.Metadata" Version="11.0.0-rc.1.26425.128" />

System.Reflection.PortableExecutable.PEHeader

public sealed class PEHeader
Represents the Portable Executable (PE) file header.
public int AddressOfEntryPoint { get; }

Gets the address of the entry point relative to the image base when the PE file is loaded into memory.

public int BaseOfCode { get; }

Gets the address of the beginning-of-code section relative to the image base when the image is loaded into memory.

public int BaseOfData { get; }

Gets the address of the beginning-of-data section relative to the image base when the image is loaded into memory.

Gets the Base Relocations Table entry.

Gets the Bound Import Table entry.

Gets the Certificate Table entry, which points to a table of attribute certificates.

public uint CheckSum { get; }

Gets the image file checksum.

Gets the Copyright Table entry.

Gets the CLI Header Table entry.

Gets the Debug Table entry.

Gets the Delay-Load Import Table entry.

Gets the characteristics of a dynamic link library.

Gets the Exception Table entry.

Gets the Export Table entry.

public int FileAlignment { get; }

Gets the alignment factor (in bytes) that is used to align the raw data of sections in the image file.

Gets the Global Pointer Table entry.

public ulong ImageBase { get; }

Gets the preferred address of the first byte of the image when it is loaded into memory.

Gets the Import Address Table entry.

Gets the Import Table entry.

Gets the Load Configuration Table entry.

public PEMagic Magic { get; }

Gets a value that identifies the format of the image file.

public ushort MajorImageVersion { get; }

Gets the major version number of the image.

public byte MajorLinkerVersion { get; }

Gets the linker major version number.

public ushort MajorOperatingSystemVersion { get; }

Gets the major version number of the required operating system.

public ushort MajorSubsystemVersion { get; }

Gets the major version number of the subsystem.

public ushort MinorImageVersion { get; }

Gets the minor version number of the image.

public byte MinorLinkerVersion { get; }

Gets the linker minor version number.

public ushort MinorOperatingSystemVersion { get; }

Gets the minor version number of the required operating system.

public ushort MinorSubsystemVersion { get; }

Gets the minor version number of the subsystem.

public int NumberOfRvaAndSizes { get; }

Gets the number of data-directory entries in the remainder of the PEHeader. Each describes a location and size.

Gets the Resource Table entry.

public int SectionAlignment { get; }

Gets the alignment (in bytes) of sections when they are loaded into memory.

public int SizeOfCode { get; }

Gets the size of the code (text) section, or the sum of all code sections if there are multiple sections.

public int SizeOfHeaders { get; }

Gets the combined size of an MS DOS stub, PE header, and section headers rounded up to a multiple of FileAlignment.

public ulong SizeOfHeapCommit { get; }

Gets the size of the local heap space to commit.

public ulong SizeOfHeapReserve { get; }

Gets the size of the local heap space to reserve. Only SizeOfHeapCommit is committed; the rest is made available one page at a time until the reserve size is reached.

public int SizeOfImage { get; }

Gets the size (in bytes) of the image, including all headers, as the image is loaded in memory.

public int SizeOfInitializedData { get; }

Gets the size of the initialized data section, or the sum of all such sections if there are multiple data sections.

public ulong SizeOfStackCommit { get; }

Gets the size of the stack to commit.

public ulong SizeOfStackReserve { get; }

Gets the size of the stack to reserve. Only SizeOfStackCommit is committed; the rest is made available one page at a time until the reserve size is reached.

public int SizeOfUninitializedData { get; }

Gets the size of the uninitialized data section (BSS), or the sum of all such sections if there are multiple BSS sections.

public Subsystem Subsystem { get; }

Gets the name of the subsystem that is required to run this image.

Gets the Thread-Local Storage Table entry.