PEReaderExtensions.GetMethodBody(PEReader, Int32) Método

Definição

Retorna um bloco de corpo de um método com o RVA (endereço virtual relativo) especificado;Returns a body block of a method with the specified Relative Virtual Address (RVA);

public:
[System::Runtime::CompilerServices::Extension]
 static System::Reflection::Metadata::MethodBodyBlock ^ GetMethodBody(System::Reflection::PortableExecutable::PEReader ^ peReader, int relativeVirtualAddress);
public static System.Reflection.Metadata.MethodBodyBlock GetMethodBody (this System.Reflection.PortableExecutable.PEReader peReader, int relativeVirtualAddress);
static member GetMethodBody : System.Reflection.PortableExecutable.PEReader * int -> System.Reflection.Metadata.MethodBodyBlock
<Extension()>
Public Function GetMethodBody (peReader As PEReader, relativeVirtualAddress As Integer) As MethodBodyBlock

Parâmetros

peReader
PEReader

A instância PEReader atual.The current PEReader instance.

relativeVirtualAddress
Int32

O RVA (endereço virtual relativo).The Relative Virtual Address (RVA).

Retornos

MethodBodyBlock

Uma instância de corpo do bloco de método.A method block body instance.

Exceções

peReader é null.peReader is null.

O corpo não foi encontrado nos metadados ou é inválido.The body is not found in the metadata or is invalid.

A seção em que o método está armazenado não está disponível.The section where the method is stored is not available.

Ocorreu um erro de E/S ao ler do fluxo subjacente.IO error occurred while reading from the underlying stream.

Aplica-se a