-
Notifications
You must be signed in to change notification settings - Fork 0
API Host TypeAccess
Liu.Yandong.Hanks edited this page Aug 19, 2026
·
2 revisions
控制注册 CLR 类型的构造函数和静态成员访问权限的枚举。
Controls constructor and static-member access for registered CLR types.
命名空间:AuroraScript.Runtime.Interop。类型:enum。
Namespace:
AuroraScript.Runtime.Interop. Kind: enum.
Purpose
TypeAccess 是公开宿主类型。通过下方签名选择调用方式;对运行时对象、生命周期和异常,应由宿主在边界处明确处理。
Controls constructor and static-member access for registered CLR types.
Enumeration Values
允许调用公开实例构造器。
Allows public instance constructors.
简单示例
var value = TypeAccess.Constructor;允许访问公开静态属性、字段和方法。
Allows public static properties, fields, and methods.
简单示例
var value = TypeAccess.Static;同时允许构造器和静态成员。
Allows both constructors and static members.
简单示例
var value = TypeAccess.All;AuroraScript.JIT 4.0.0 · 仓库 · MIT 许可
AuroraScript.JIT 4.0.0 · Repository · MIT License