SecurityRulesAttribute.SkipVerificationInFullTrust 属性

定义

确定完全信任的透明代码是否应该跳过 Microsoft 中间语言 (MSIL) 验证。

public:
 property bool SkipVerificationInFullTrust { bool get(); void set(bool value); };
public bool SkipVerificationInFullTrust { get; set; }
member this.SkipVerificationInFullTrust : bool with get, set
Public Property SkipVerificationInFullTrust As Boolean

属性值

如果应该跳过 MSIL 验证,则为 true;否则为 false。 默认值为 false

注解

此属性应仅用于优化,因为如果代码不可验证,则无法强制实施透明代码的安全保证。

如果使用此属性跳过程序集的 MSIL 验证,请使用 /transparentPeverify 工具 中的 选项静态验证程序集的透明代码是否满足类型安全要求。

适用于