SecurityRulesAttribute(SecurityRuleSet) 构造函数

定义

使用指定的规则集值初始化类的新实例 SecurityRulesAttribute

public:
 SecurityRulesAttribute(System::Security::SecurityRuleSet ruleSet);
public SecurityRulesAttribute(System.Security.SecurityRuleSet ruleSet);
new System.Security.SecurityRulesAttribute : System.Security.SecurityRuleSet -> System.Security.SecurityRulesAttribute
Public Sub New (ruleSet As SecurityRuleSet)

参数

ruleSet
SecurityRuleSet

指定透明度规则集的枚举值之一。

注解

指定 ruleSet 参数时,请对 .NET Framework 版本 2.0 规则使用 Level1,或对 .NET Framework 4 规则使用 Level2。 有关行为的详细信息 Level1 ,请参阅 Security-Transparent 代码级别 1。 有关行为的信息 Level2 ,请参阅 Security-Transparent 代码级别 2

适用于

另请参阅

  • .NET Framework 版本 4.0