MethodBuilder.IsSecurityCritical 属性
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
在所有情况下均引发 NotSupportedException。
public:
virtual property bool IsSecurityCritical { bool get(); };
public override bool IsSecurityCritical { get; }
member this.IsSecurityCritical : bool
Public Overrides ReadOnly Property IsSecurityCritical As Boolean
属性值
在所有情况下均引发 NotSupportedException。
例外
在所有情况下。 动态程序集中不支持此属性。
注解
若要确定动态程序集中的方法是否安全关键,请通过调用 来完成类型,对已完成的类型调用 方法,并获取生成的 TypeBuilder.CreateType GetMethod 上的 IsSecurityCritical 属性 MethodInfo 。