Share via


SecurityRulesAttribute(SecurityRuleSet) Konstruktor

Definice

Inicializuje novou instanci SecurityRulesAttribute třídy pomocí zadané hodnoty sady pravidel.

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)

Parametry

ruleSet
SecurityRuleSet

Jedna z hodnot výčtu, která určuje nastavená pravidla průhlednosti.

Poznámky

Při zadávání parametru ruleSet použijte Level1 pro pravidla rozhraní .NET Framework verze 2.0 nebo Level2 pro pravidla rozhraní .NET Framework 4. Další informace o Level1 chování najdete v tématu Transparentní kód zabezpečení, úroveň 1. Informace o Level2 chování najdete v tématu Kód transparentního zabezpečení, úroveň 2.

Platí pro

Viz také