PEReaderExtensions.GetMethodBody(PEReader, Int32) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
Parameters
- relativeVirtualAddress
- Int32
The Relative Virtual Address (RVA).
Returns
A method block body instance.
Exceptions
peReader
is null
.
The body is not found in the metadata or is invalid.
The section where the method is stored is not available.
IO error occurred while reading from the underlying stream.
Applies to
Συνεργαστείτε μαζί μας στο GitHub
Μπορείτε να βρείτε την πηγή για αυτό το περιεχόμενο στο GitHub, όπου μπορείτε επίσης να δημιουργήσετε και να εξετάσετε ζητήματα και αιτήματα έλξης. Για περισσότερες πληροφορίες, ανατρέξτε στον οδηγό συνεργατών.