AssemblyBuilderAccess Enum

Definition

Defines the access modes for a dynamic assembly.

This enumeration supports a bitwise combination of its member values.

C#
[System.Flags]
public enum AssemblyBuilderAccess
C#
[System.Flags]
[System.Serializable]
public enum AssemblyBuilderAccess
C#
[System.Flags]
[System.Serializable]
[System.Runtime.InteropServices.ComVisible(true)]
public enum AssemblyBuilderAccess
Inheritance
AssemblyBuilderAccess
Attributes

Fields

Name Value Description
Run 1

The dynamic assembly can be executed, but not saved.

Save 2

The dynamic assembly can be saved, but not executed.

RunAndSave 3

The dynamic assembly can be executed and saved.

ReflectionOnly 6

The dynamic assembly is loaded into the reflection-only context, and cannot be executed.

RunAndCollect 9

The dynamic assembly will be automatically unloaded and its memory reclaimed, when it's no longer accessible.

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, 9
.NET Framework 1.1, 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 (package-provided), 2.1