อ่านในภาษาอังกฤษ แก้ไข

แชร์ผ่าน


SecurityRulesAttribute(SecurityRuleSet) Constructor

Definition

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

C#
public SecurityRulesAttribute(System.Security.SecurityRuleSet ruleSet);

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

ผลิตภัณฑ์ เวอร์ชัน
.NET Core 2.0, Core 2.1, Core 2.2, Core 3.0, Core 3.1, 5, 6, 7, 8, 9, 10
.NET Framework 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1
.NET Standard 2.0, 2.1

See also