Assembly.SecurityRuleSet Assembly.SecurityRuleSet Assembly.SecurityRuleSet Assembly.SecurityRuleSet Property

定义

获取一个值,该值指示公共语言运行时 (CLR) 对此程序集强制执行的安全规则集。Gets a value that indicates which set of security rules the common language runtime (CLR) enforces for this assembly.

public:
 virtual property System::Security::SecurityRuleSet SecurityRuleSet { System::Security::SecurityRuleSet get(); };
public virtual System.Security.SecurityRuleSet SecurityRuleSet { get; }
member this.SecurityRuleSet : System.Security.SecurityRuleSet
Public Overridable ReadOnly Property SecurityRuleSet As SecurityRuleSet

属性值

CLR 对此程序集强制执行的安全规则集。The security rule set that the CLR enforces for this assembly.

注解

默认情况下, 使用编译的程序集.NET Framework 4.NET Framework 4具有2 级透明度, 但您可以改为将其显式设为1 级By default, assemblies that you compile with the .NET Framework 4.NET Framework 4 have level 2 transparency, although you can explicitly make them level 1 instead. 使用早期版本的 .NET Framework 编译的程序集具有1级透明度。Assemblies that were compiled with earlier versions of the .NET Framework have level 1 transparency.

请参阅安全更改See Security Changes.

适用于

另请参阅