SecurityRulesAttribute Constructor (SecurityRuleSet)

.NET Framework (current version)
 

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
)

Parameters

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
Show: