Table of Contents

Class ImportedSymbol

Namespace
AsmResolver.PE.Imports
Assembly
AsmResolver.PE.dll

Represents one member of an external module that was imported into a PE image.

public class ImportedSymbol : IOwnedCollectionElement<ImportedModule>, ISymbol
Inheritance
ImportedSymbol
Implements
Inherited Members

Constructors

ImportedSymbol(ushort)

Creates a new import entry that references a member exposed by ordinal.

public ImportedSymbol(ushort ordinal)

Parameters

ordinal ushort

The ordinal of the member to import.

ImportedSymbol(ushort, string)

Creates a new import entry that references a member exposed by name.

public ImportedSymbol(ushort hint, string name)

Parameters

hint ushort

The likely index of the export in the export table.

name string

The name of the export.

Properties

AddressTableEntry

Gets or sets the entry in the import address table (IAT).

public ISegmentReference? AddressTableEntry { get; set; }

Property Value

ISegmentReference

DeclaringModule

Gets the module that defines the symbol.

public ImportedModule? DeclaringModule { get; }

Property Value

ImportedModule

Hint

Gets or sets the likely index of the member referenced by Name, into the export table.

public ushort Hint { get; set; }

Property Value

ushort

IsImportByName

Gets a value indicating the member is imported by its name.

public bool IsImportByName { get; }

Property Value

bool

IsImportByOrdinal

Gets a value indicating the member is imported by its ordinal.

public bool IsImportByOrdinal { get; }

Property Value

bool

Name

Gets or sets the name of the member that was imported.

public string? Name { get; set; }

Property Value

string

Ordinal

Gets or sets the ordinal of the member that was imported.

public ushort Ordinal { get; set; }

Property Value

ushort

Remarks

This value is meaningless if IsImportByName is true.

Methods

GetReference()

Gets a reference the object.

public ISegmentReference? GetReference()

Returns

ISegmentReference

The object.

ToString()

Returns a string that represents the current object.

public override string ToString()

Returns

string

A string that represents the current object.