Table of Contents

Class SectionSymbol

Namespace
AsmResolver.Symbols.Pdb.Records
Assembly
AsmResolver.Symbols.Pdb.dll

Provides information about a section within a PE file.

public class SectionSymbol : CodeViewSymbol, ICodeViewSymbol
Inheritance
SectionSymbol
Implements
Derived
Inherited Members

Constructors

SectionSymbol()

Initializes an empty section symbol.

protected SectionSymbol()

SectionSymbol(Utf8String)

Creates a new section symbol.

public SectionSymbol(Utf8String name)

Parameters

name Utf8String

The name of the section.

Properties

Alignment

Gets or sets the alignment of the section.

public uint Alignment { get; set; }

Property Value

uint

Remarks

This should be a power of 2.

Attributes

Gets or sets the section flags describing the nature of the section.

public SectionFlags Attributes { get; set; }

Property Value

SectionFlags

CodeViewSymbolType

Gets the type of symbol this record encodes.

public override CodeViewSymbolType CodeViewSymbolType { get; }

Property Value

CodeViewSymbolType

Name

Gets or sets the name of the section.

public Utf8String? Name { get; set; }

Property Value

Utf8String

Rva

Gets or sets the starting relative virtual address (RVA) of the section.

public uint Rva { get; set; }

Property Value

uint

SectionNumber

Gets or sets the section number within the PE file.

public ushort SectionNumber { get; set; }

Property Value

ushort

Size

Gets or sets the size in bytes of the section.

public uint Size { get; set; }

Property Value

uint

Methods

GetName()

Obtains the name of the section.

protected virtual Utf8String? GetName()

Returns

Utf8String

The name.

Remarks

This method is called upon initialization of the Name property.

ToString()

Returns a string that represents the current object.

public override string ToString()

Returns

string

A string that represents the current object.