Επεξεργασία

Κοινή χρήση μέσω


System.Reflection.PortableExecutable Namespace

Provides classes related to reading or writing Portable Executable (PE) files.

Classes

CoffHeader

Represents the header of a COFF file.

CorHeader

Represents the Common Language Infrastructure (CLI) header of the .NET executable image.

DebugDirectoryBuilder
ManagedPEBuilder
PEBuilder
PEDirectoriesBuilder

Builds PE directories.

PEHeader

Represents the Portable Executable (PE) file header.

PEHeaderBuilder

Defines the header for a portable executable (PE) file.

PEHeaders

Defines a type that reads PE (Portable Executable) and COFF (Common Object File Format) headers from a stream.

PEReader

Provides a reader for Portable Executable format (PE) files.

ResourceSectionBuilder

Defines the base class for a PE resource section builder. Derive from ResourceSectionBuilder to provide serialization logic for native resources.

Structs

CodeViewDebugDirectoryData

Provides information about a Program Debug Database (PDB) file.

DebugDirectoryEntry

Identifies the location, size and format of a block of debug information.

DirectoryEntry

Represents a directory entry in the Portable Executable (PE) image.

PdbChecksumDebugDirectoryData

Represents a PDB Checksum debug directory entry.

PEBuilder.Section
PEMemoryBlock

Represents a block of memory in the Portable Executable (PE) image.

SectionHeader

Provides information about the section header of a PE/COFF file.

SectionLocation

Enums

Characteristics

Represents the Common Object File Format (COFF) file characteristics.

CorFlags

Represents the runtime flags for a .NET executable image.

DebugDirectoryEntryType

An enumeration that describes the format of the debugging information of a DebugDirectoryEntry.

DllCharacteristics

Describes the characteristics of a dynamic link library.

Machine

Specifies the target machine's CPU architecture.

PEMagic
PEStreamOptions

Provides options that specify how sections of a PE image are read from a stream.

SectionCharacteristics
Subsystem

Describes the subsystem requirement for the image.

Remarks

This namespace contains the following core classes:

  • The ManagedPEBuilder class, which is used to write an assembly as a PE file.
  • The PEReader class, which is used to read a PE file and to obtain a MetadataReader to read associated assembly metadata.

See also