共用方式為


AuthorizationRuleCollection.AddRule(AuthorizationRule) 方法

定義

AuthorizationRule 物件加入集合。

public:
 void AddRule(System::Security::AccessControl::AuthorizationRule ^ rule);
public void AddRule (System.Security.AccessControl.AuthorizationRule? rule);
public void AddRule (System.Security.AccessControl.AuthorizationRule rule);
member this.AddRule : System.Security.AccessControl.AuthorizationRule -> unit
Public Sub AddRule (rule As AuthorizationRule)

參數

rule
AuthorizationRule

要新增到集合的 AuthorizationRule 物件。

適用於