Returns the MSIL for the method body, as an array of bytes.
Namespace:
System.Reflection
Assembly:
mscorlib (in mscorlib.dll)
'Usage
Dim instance As MethodBody
Dim returnValue As Byte()
returnValue = instance.GetILAsByteArray()
'Declaration
Public Function GetILAsByteArray As Byte()
Return Value
Type:
array<System..::.Byte>[]()[]An array of type Byte that contains the MSIL for the method body.
You can use the token-resolution methods of the module class, such as ResolveType, ResolveMethod, and ResolveType, to resolve the tokens in the method body to Type objects, MethodInfo objects, and FieldInfo objects that provide detailed information about the types, methods, and fields accessed by the MSIL in the method body.
Windows 7, Windows Vista, Windows XP SP2, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP Starter Edition, Windows Server 2008 R2, Windows Server 2008, Windows Server 2003, Windows Server 2000 SP4, Windows Millennium Edition, Windows 98
The .NET Framework and .NET Compact Framework do not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.
.NET Framework
Supported in: 3.5, 3.0, 2.0
Reference