Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
GetPEKind Method

ModuleBuilder.GetPEKind Method

.NET Framework 4.6 and 4.5

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

Supported in: 4.6, 4.5, 4

.NET Framework Client Profile

Supported in: 4
Show:
© 2015 Microsoft