Language

PEReaderExtensions.GetMethodBody(PEReader, Int32) メソッド

定義

指定した相対仮想アドレス (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

パラメーター

peReader
PEReader

現在の PEReader インスタンス。

relativeVirtualAddress
Int32

相対仮想アドレス (RVA)。

返品

メソッド ブロック本体インスタンス。

例外

peReader は nullです。

本文がメタデータに見つからないか、無効です。

メソッドが格納されているセクションは使用できません。

基になるストリームからの読み取り中に IO エラーが発生しました。

適用対象