Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All

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
ReflectionOnlyThe dynamic assembly is loaded into the reflection-only context, and cannot be executed.
RunThe dynamic assembly can be executed, but not saved.
RunAndCollectThe dynamic assembly can be unloaded and its memory reclaimed, subject to the restrictions described in Collectible Assemblies for Dynamic Type Generation.
RunAndSaveThe dynamic assembly can be executed and saved.
SaveThe dynamic assembly can be saved, but not executed.

.NET Framework

Supported in: 4.6, 4.5, 4, 3.5, 3.0, 2.0, 1.1

.NET Framework Client Profile

Supported in: 4, 3.5 SP1
Show:
© 2015 Microsoft