CommonObjectSecurity.AddAuditRule(AuditRule) CommonObjectSecurity.AddAuditRule(AuditRule) CommonObjectSecurity.AddAuditRule(AuditRule) CommonObjectSecurity.AddAuditRule(AuditRule) Method

定義

將指定的稽核規則加入與這個 CommonObjectSecurity 物件相關聯的系統存取控制清單 (SACL)。Adds the specified audit rule to the System Access Control List (SACL) associated with this CommonObjectSecurity object.

protected:
 void AddAuditRule(System::Security::AccessControl::AuditRule ^ rule);
protected void AddAuditRule (System.Security.AccessControl.AuditRule rule);
member this.AddAuditRule : System.Security.AccessControl.AuditRule -> unit
Protected Sub AddAuditRule (rule As AuditRule)

參數

rule
AuditRule AuditRule AuditRule AuditRule

要加入的稽核規則。The audit rule to add.

備註

新增 audit 規則可能會導致 SACL 中的現有存取規則合併。Adding an audit rule might cause existing access rules in the SACL to be merged.

適用於