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
ushortThe 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
Properties
AddressTableEntry
Gets or sets the entry in the import address table (IAT).
public ISegmentReference? AddressTableEntry { get; set; }
Property Value
DeclaringModule
Gets the module that defines the symbol.
public ImportedModule? DeclaringModule { get; }
Property Value
Hint
Gets or sets the likely index of the member referenced by Name, into the export table.
public ushort Hint { get; set; }
Property Value
IsImportByName
Gets a value indicating the member is imported by its name.
public bool IsImportByName { get; }
Property Value
IsImportByOrdinal
Gets a value indicating the member is imported by its ordinal.
public bool IsImportByOrdinal { get; }
Property Value
Name
Gets or sets the name of the member that was imported.
public string? Name { get; set; }
Property Value
Ordinal
Gets or sets the ordinal of the member that was imported.
public ushort Ordinal { get; set; }
Property Value
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.