閱讀英文

共用方式為


PortableExecutableKinds 列舉

定義

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

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

C#
[System.Flags]
public enum PortableExecutableKinds
C#
[System.Flags]
[System.Runtime.InteropServices.ComVisible(true)]
[System.Serializable]
public enum PortableExecutableKinds
繼承
PortableExecutableKinds
屬性

欄位

名稱 Description
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 函式所存取的。

適用於

產品 版本
.NET Core 2.0, Core 2.1, Core 2.2, Core 3.0, Core 3.1, 5, 6, 7, 8, 9
.NET Framework 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1
.NET Standard 2.0, 2.1