MethodBody.GetILAsByteArray 方法

定義

傳回方法主體的 MSIL,當做位元組陣列。

public:
 virtual cli::array <System::Byte> ^ GetILAsByteArray();
public:
 cli::array <System::Byte> ^ GetILAsByteArray();
public virtual byte[]? GetILAsByteArray ();
public virtual byte[] GetILAsByteArray ();
public byte[] GetILAsByteArray ();
abstract member GetILAsByteArray : unit -> byte[]
override this.GetILAsByteArray : unit -> byte[]
member this.GetILAsByteArray : unit -> byte[]
Public Overridable Function GetILAsByteArray () As Byte()
Public Function GetILAsByteArray () As Byte()

傳回

Byte[]

型別 Byte 的陣列,包含方法主體的 MSIL。

備註

您可以使用模組類別的 Token 解析方法,例如 ResolveTypeResolveMethodResolveMember ,將方法主體中的權杖解析為 Type 物件、 MethodInfo 物件和 FieldInfo 物件,以提供方法主體中 MSIL 所存取之類型、方法和欄位的詳細資訊。

注意

剖析方法主體需要徹底瞭解中繼資料和 MSIL 指令格式。 您可以在 Common Language Infrastructure (CLI) 檔中找到資訊,特別是「分割 II:元資料定義和語意」。

適用於

另請參閱