AssemblyBuilderAccess Enumeration

AssemblyBuilderAccess Enumeration

 

Defines the access modes for a dynamic assembly.

This enumeration has a FlagsAttribute attribute that allows a bitwise combination of its member values.

Namespace:   System.Reflection.Emit
Assembly:  mscorlib (in mscorlib.dll)

[SerializableAttribute]
[ComVisibleAttribute(true)]
[FlagsAttribute]
public enum AssemblyBuilderAccess

Member nameDescription
ReflectionOnly

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

Run

The dynamic assembly can be executed, but not saved.

RunAndCollect

The dynamic assembly can be unloaded and its memory reclaimed, subject to the restrictions described in Collectible Assemblies for Dynamic Type Generation.

RunAndSave

The dynamic assembly can be executed and saved.

Save

The dynamic assembly can be saved, but not executed.

Universal Windows Platform
Available since 10
.NET Framework
Available since 1.1
Silverlight
Available since 2.0
Return to top
Show:
© 2016 Microsoft