MetadataBuilder.AddFieldRelativeVirtualAddress(FieldDefinitionHandle, Int32) Método
Definición
Agrega una asignación de un campo a su valor inicial almacenado en la imagen de PE.Adds a mapping from a field to its initial value stored in the PE image.
public:
void AddFieldRelativeVirtualAddress(System::Reflection::Metadata::FieldDefinitionHandle field, int offset);
public void AddFieldRelativeVirtualAddress (System.Reflection.Metadata.FieldDefinitionHandle field, int offset);
member this.AddFieldRelativeVirtualAddress : System.Reflection.Metadata.FieldDefinitionHandle * int -> unit
Public Sub AddFieldRelativeVirtualAddress (field As FieldDefinitionHandle, offset As Integer)
Parámetros
- field
- FieldDefinitionHandle
El identificador de la definición de tipo.The field definition handle.
- offset
- Int32
El desplazamiento en el bloque de la imagen de PE que almacena los valores iniciales de los campos asignados (normalmente en la sección .text).The offset within the block in the PE image that stores initial values of mapped fields (usually in the .text section).
Excepciones
offset
es negativo.offset
is negative.
Comentarios
Los enteros deben agregarse en el mismo orden que las definiciones de campo correspondientes.Entires must be added in the same order as the corresponding field definitions.
La dirección virtual relativa final almacenada en los metadatos se calcula cuando los metadatos se serializan agregando el desplazamiento a la dirección virtual del inicio del bloque.The final relative virtual address stored in the metadata is calculated when the metadata is serialized by adding the offset to the virtual address of the block start.