Leggi in inglese

Condividi tramite


PortableExecutableKinds Enumerazione

Definizione

Identifica il tipo di codice in un file eseguibile.

Questa enumerazione supporta una combinazione bit per bit dei rispettivi valori dei membri.

C#
[System.Flags]
public enum PortableExecutableKinds
C#
[System.Flags]
[System.Runtime.InteropServices.ComVisible(true)]
[System.Serializable]
public enum PortableExecutableKinds
Ereditarietà
PortableExecutableKinds
Attributi

Campi

Nome Valore Descrizione
ILOnly 1

L'eseguibile contiene esclusivamente linguaggio MSIL (Microsoft Intermediate Language) e pertanto non fa distinzione tra piattaforme a 32 o a 64 bit.

NotAPortableExecutableImage 0

Il file non è in formato PE (Portable Executable).

PE32Plus 4

Questo eseguibile richiede una piattaforma a 64 bit.

Preferred32Bit 16

L'eseguibile è indipendente dalla piattaforma ma deve essere eseguito in una piattaforma a 32 bit, se possibile.

Required32Bit 2

L'eseguibile può essere eseguito su una piattaforma a 32 bit o in un ambiente WOW (Windows on Windows) a 32 bit di una piattaforma a 64 bit.

Unmanaged32Bit 8

L'eseguibile contiene codice puro non gestito.

Commenti

Per ottenere questo valore per un modulo, usare il Module.GetPEKind metodo .

Nota

Questa enumerazione corrisponde all'enumerazione nell'API CorPEKind di reflection non gestita, accessibile dalla funzione non gestita GetPEKind .

Si applica a

Prodotto Versioni
.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