AssemblyBuilderAccess 枚举
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
定义动态程序集的访问模式。
此枚举支持其成员值的按位组合。
public enum class AssemblyBuilderAccess
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
[<System.Flags>]
type AssemblyBuilderAccess =
[<System.Flags>]
[<System.Serializable>]
type AssemblyBuilderAccess =
[<System.Flags>]
[<System.Serializable>]
[<System.Runtime.InteropServices.ComVisible(true)>]
type AssemblyBuilderAccess =
Public Enum AssemblyBuilderAccess
- 继承
- 属性
名称 | 值 | 说明 |
---|---|---|
ReflectionOnly | 6 | 动态程序集被加载到只反射上下文中,因此无法执行。 |
Run | 1 | 可以执行但无法保存该动态程序集。 |
RunAndCollect | 9 | 当动态程序集不再可供访问时,将自动卸载该程序集,并回收其内存。 |
RunAndSave | 3 | 可以执行和保存该动态程序集。 |
Save | 2 | 可以保存但无法执行该动态程序集。 |
产品 | 版本 |
---|---|
.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, 2.1 |