PortableExecutableKinds 列舉

定義

識別可執行檔中的程式碼性質。Identifies the nature of the code in an executable file.

此列舉有 FlagsAttribute 屬性,因此其成員值可進行位元組合。

public enum class PortableExecutableKinds
[System.Flags]
public enum PortableExecutableKinds
[System.Flags]
[System.Runtime.InteropServices.ComVisible(true)]
[System.Serializable]
public enum PortableExecutableKinds
[<System.Flags>]
type PortableExecutableKinds = 
[<System.Flags>]
[<System.Runtime.InteropServices.ComVisible(true)>]
[<System.Serializable>]
type PortableExecutableKinds = 
Public Enum PortableExecutableKinds
繼承
PortableExecutableKinds
屬性

欄位

ILOnly 1

可執行檔僅包含 Microsoft Intermediate Language (MSIL),因此相對於 32 位元或 64 位元平台而言是中性的。The executable contains only Microsoft intermediate language (MSIL), and is therefore neutral with respect to 32-bit or 64-bit platforms.

NotAPortableExecutableImage 0

此檔案並非使用可攜式執行檔 (PE) 格式。The file is not in portable executable (PE) file format.

PE32Plus 4

可執行檔需要 64 位元的平台。The executable requires a 64-bit platform.

Preferred32Bit 16

此為與平台無關的可執行檔,但應該盡可能在 32 位元平台上執行。The executable is platform-agnostic but should be run on a 32-bit platform whenever possible.

Required32Bit 2

可執行檔可以在 32 位元的平台上執行,也可以在 64 位元平台的 32 位元 Windows on Windows (WOW) 環境下執行。The executable can be run on a 32-bit platform, or in the 32-bit Windows on Windows (WOW) environment on a 64-bit platform.

Unmanaged32Bit 8

可執行檔包含純 Unmanaged 程式碼。The executable contains pure unmanaged code.

備註

若要取得模組的這個值,請使用 Module.GetPEKind 方法。To obtain this value for a module, use the Module.GetPEKind method.

注意

這個列舉對應至非受控 CorPEKind 反映 API 中的列舉,此 API 是由非受控函式存取 GetPEKindThis enumeration corresponds to the CorPEKind enumeration in the unmanaged reflection API, which is accessed by the unmanaged GetPEKind function.

適用於