Export (0) Print
Expand All
Expand Minimize
This topic has not yet been rated - Rate this topic

PortableExecutableKinds Enumeration

Note: This enumeration is new in the .NET Framework version 2.0.

Identifies the nature of the code in an executable file.

This enumeration has a FlagsAttribute attribute that allows a bitwise combination of its member values.

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

[SerializableAttribute] 
[FlagsAttribute] 
[ComVisibleAttribute(true)] 
public enum PortableExecutableKinds
/** @attribute SerializableAttribute() */ 
/** @attribute FlagsAttribute() */ 
/** @attribute ComVisibleAttribute(true) */ 
public enum PortableExecutableKinds
SerializableAttribute 
FlagsAttribute 
ComVisibleAttribute(true) 
public enum PortableExecutableKinds
 Member nameDescription
ILOnlyThe executable contains only Microsoft intermediate language (MSIL), and is therefore neutral with respect to 32-bit or 64-bit platforms. 
NotAPortableExecutableImageThe file is not in portable executable (PE) file format. 
PE32PlusThe executable requires a 64-bit platform. 
Required32BitThe executable can be run on a 32-bit platform, or in the 32-bit Windows on Windows (WOW) environment on a 64-bit platform. 
Unmanaged32BitThe executable contains pure unmanaged code. 

To obtain this value for a module, use the Module.GetPEKind method.

NoteNote

This enumeration corresponds to the CorPEKind enumeration in the unmanaged reflection API, which is accessed by the unmanaged GetPEKind function.

Windows 98, Windows 2000 SP4, Windows Millennium Edition, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see System Requirements.

.NET Framework

Supported in: 2.0
Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

ADD
Show:
© 2014 Microsoft. All rights reserved.