Share via


MethodBuilder.IsSecurityCritical 属性

定义

在所有情况下均引发 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上的 属性。

适用于