SecurityRulesAttribute Constructor (SecurityRuleSet)

.NET Framework (current version)

The .NET API Reference documentation has a new home. Visit the .NET API Browser on to see the new experience.

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
Available since 4.0
Return to top