ModuleBuilder.GetPEKind Method (PortableExecutableKinds, ImageFileMachine)

.NET Framework (current version)
 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

Gets a pair of values indicating the nature of the code in a module and the platform targeted by the module.

Namespace:   System.Reflection.Emit
Assembly:  mscorlib (in mscorlib.dll)

public override void GetPEKind(
	out PortableExecutableKinds peKind,
	out ImageFileMachine machine
)

Parameters

peKind
Type: System.Reflection.PortableExecutableKinds

When this method returns, a combination of the PortableExecutableKinds values indicating the nature of the code in the module.

machine
Type: System.Reflection.ImageFileMachine

When this method returns, one of the ImageFileMachine values indicating the platform targeted by the module.

For dynamic modules, peKind is always PortableExecutableKinds.NotAPortableExecutableImage and machine is always 0 (zero).

.NET Framework
Available since 4.0
Return to top
Show: