CorFlags Enum

Definition

Represents the runtime flags for a .NET executable image.

This enumeration supports a bitwise combination of its member values.

C#
[System.Flags]
public enum CorFlags
Inheritance
CorFlags
Attributes

Fields

Name Value Description
ILOnly 1

Indicates that this image only contains IL code.

Requires32Bit 2

Indicates that this image can only be loaded into a 32-bit process.

ILLibrary 4

Indicates that this image is a library that only contains IL code.

StrongNameSigned 8

Indicates that this image has a strong name signature.

NativeEntryPoint 16

Reserved, shall be 0.

TrackDebugData 65536

Reserved, shall be 0.

Prefers32Bit 131072

Indicates that this image should be run as a 32-bit process on a 64-bit operating system.

Remarks

The runtime flags are defined by the ECMA-335 specification, section II.25.3.3.1. This enumeration is used by the Flags property.

Applies to

Product Versions
.NET Core 1.0, Core 1.1, Core 2.0, Core 2.1, Core 2.2, Core 3.0, Core 3.1, 5, 6, 7, 8 (package-provided), 8, 9 (package-provided), 9
.NET Framework 4.7 (package-provided), 4.7.1 (package-provided), 4.7.2 (package-provided), 4.8 (package-provided)
.NET Standard 2.0 (package-provided)
UWP 10.0