SecurityRulesAttribute(SecurityRuleSet) 建構函式

定義

使用指定的規則集值,初始化 SecurityRulesAttribute 類別的新執行個體。

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)

參數

ruleSet
SecurityRuleSet

其中一個列舉值,指定透明度規則集。

備註

當您指定 參數時 ruleSet ,請使用 Level1 .NET Framework 2.0 版規則或 Level2 .NET Framework 4 個規則。 如需行為的詳細資訊 Level1 ,請參閱 安全性透明程式碼,層級 1。 如需行為的相關資訊 Level2 ,請參閱 安全性透明程式碼,層級 2

適用於

另請參閱