CommonObjectSecurity.SetAuditRule(AuditRule) CommonObjectSecurity.SetAuditRule(AuditRule) CommonObjectSecurity.SetAuditRule(AuditRule) CommonObjectSecurity.SetAuditRule(AuditRule) Method

定義

從與這個 CommonObjectSecurity 物件相關聯之系統存取控制清單 (SACL),移除包含與指定稽核規則相同安全識別項和限定詞的所有稽核規則,然後加入指定的稽核規則。Removes all audit rules that contain the same security identifier and qualifier as the specified audit rule in the System Access Control List (SACL) associated with this CommonObjectSecurity object and then adds the specified audit rule.

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

參數

rule
AuditRule AuditRule AuditRule AuditRule

要設定的稽核規則。The audit rule to set.

適用於