Show / Hide Table of Contents

Class MetaDataHdr

The Meta Data Header is part of the .Net/CLI (COM+ 2) header and is reachable from the .Net/CLI (COM+2) header ImageCor20Header. It contains information about embedded streams (sections) in the .Net assembly.

Inheritance
object
AbstractStructure
MetaDataHdr
Inherited Members
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
object.ToString()
Namespace: PeNet.Header.Net
Assembly: PeNet.dll
Syntax
public class MetaDataHdr : AbstractStructure

Constructors

| Edit this page View Source

MetaDataHdr(IRawFile, long)

Create a new Meta Data Header from a PE file.

Declaration
public MetaDataHdr(IRawFile peFile, long offset)
Parameters
Type Name Description
IRawFile peFile

PE file which contains a Meta Data Header.

long offset

Offset of the header start in the PE file.

Properties

| Edit this page View Source

Flags

Reserved flags field. Always 0.

Declaration
public ushort Flags { get; set; }
Property Value
Type Description
ushort
| Edit this page View Source

MajorVersion

Major version.

Declaration
public ushort MajorVersion { get; set; }
Property Value
Type Description
ushort
| Edit this page View Source

MetaDataStreamsHdrs

Array with all Meta Data Stream Headers.

Declaration
public MetaDataStreamHdr[]? MetaDataStreamsHdrs { get; }
Property Value
Type Description
MetaDataStreamHdr[]
| Edit this page View Source

MinorVersion

Minor version.

Declaration
public ushort MinorVersion { get; set; }
Property Value
Type Description
ushort
| Edit this page View Source

Reserved

Reserved. Always 0.

Declaration
public uint Reserved { get; set; }
Property Value
Type Description
uint
| Edit this page View Source

Signature

Signature. Always 0x424A5342 in a valid .Net assembly.

Declaration
public uint Signature { get; set; }
Property Value
Type Description
uint
| Edit this page View Source

Streams

Number of streams (sections) to follow.

Declaration
public ushort Streams { get; set; }
Property Value
Type Description
ushort
| Edit this page View Source

Version

Version number as an UTF-8 string.

Declaration
public string? Version { get; }
Property Value
Type Description
string
| Edit this page View Source

VersionLength

Length of the UTF-8 version string rounded up to a multiple of 4. For e.g., v1.3.4323

Declaration
public uint VersionLength { get; set; }
Property Value
Type Description
uint
  • Edit this page
  • View Source
In this article
Back to top Generated by DocFX