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

属性值

Boolean

在所有情况下均引发 NotSupportedException

例外

在所有情况下。 动态程序集中不支持此属性。

注解

若要确定动态程序集中的方法是否安全关键,请通过调用 来完成类型,对已完成的类型调用 方法,并获取生成的 TypeBuilder.CreateType GetMethod 上的 IsSecurityCritical 属性 MethodInfo

适用于