Edit

Share via


SecurityRulesAttribute(SecurityRuleSet) Constructor

Definition

Initializes a new instance of the SecurityRulesAttribute class using the specified rule set value.

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)

Parameters

ruleSet
SecurityRuleSet

One of the enumeration values that specifies the transparency rules set.

Remarks

When you specify the ruleSet parameter, use Level1 for .NET Framework version 2.0 rules or Level2 for .NET Framework 4 rules. For more information about Level1 behavior, see Security-Transparent Code, Level 1. For information about Level2 behavior, see Security-Transparent Code, Level 2.

Applies to

See also