SecurityRulesAttribute Constructor

.NET Framework 4.6 and 4.5

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

Namespace:  System.Security
Assembly:  mscorlib (in mscorlib.dll)

public SecurityRulesAttribute(
	SecurityRuleSet ruleSet


Type: System.Security.SecurityRuleSet

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

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.

.NET Framework

Supported in: 4.6, 4.5, 4

.NET Framework Client Profile

Supported in: 4
Was this page helpful?
(1500 characters remaining)
Thank you for your feedback
© 2015 Microsoft