PortableExecutableKinds 列舉

定義

識別可執行檔中的程式碼性質。

此列舉支援其成員值的位元組合。

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 位元平台而言是中性的。

NotAPortableExecutableImage 0

此檔案並非使用可攜式執行檔 (PE) 格式。

PE32Plus 4

可執行檔需要 64 位元的平台。

Preferred32Bit 16

此為與平台無關的可執行檔,但應該盡可能在 32 位元平台上執行。

Required32Bit 2

可執行檔可以在 32 位元的平台上執行,也可以在 64 位元平台的 32 位元 Windows on Windows (WOW) 環境下執行。

Unmanaged32Bit 8

可執行檔包含純 Unmanaged 程式碼。

備註

若要取得模組的這個值,請使用 Module.GetPEKind 方法。

注意

這個列舉會對應至 CorPEKind Unmanaged 反映 API 中的列舉,這是 Unmanaged GetPEKind 函式所存取的。

適用於