AssemblyBuilderAccess AssemblyBuilderAccess AssemblyBuilderAccess AssemblyBuilderAccess Enum

定义

定义动态程序集的访问模式。Defines the access modes for a dynamic assembly.

此枚举有一个 FlagsAttribute 属性,允许按位组合成员值。

public enum class AssemblyBuilderAccess
[System.Flags]
[System.Runtime.InteropServices.ComVisible(true)]
[System.Serializable]
public enum AssemblyBuilderAccess
type AssemblyBuilderAccess = 
Public Enum AssemblyBuilderAccess
继承
AssemblyBuilderAccessAssemblyBuilderAccessAssemblyBuilderAccessAssemblyBuilderAccess
属性

字段

ReflectionOnly ReflectionOnly ReflectionOnly ReflectionOnly 6

动态程序集被加载到只反射上下文中,因此无法执行。The dynamic assembly is loaded into the reflection-only context, and cannot be executed.

Run Run Run Run 1

可以执行但无法保存该动态程序集。The dynamic assembly can be executed, but not saved.

RunAndCollect RunAndCollect RunAndCollect RunAndCollect 9

当动态程序集不再可供访问时,将自动卸载该程序集,并回收其内存。The dynamic assembly will be automatically unloaded and its memory reclaimed, when it's no longer accessible.

RunAndSave RunAndSave RunAndSave RunAndSave 3

可以执行和保存该动态程序集。The dynamic assembly can be executed and saved.

Save Save Save Save 2

可以保存但无法执行该动态程序集。The dynamic assembly can be saved, but not executed.

适用于