/// <summary> /// Searches for an audit control rule that exactly matches the specified rule and, if found, removes it. /// </summary> /// <param name="rule">The Audit control rule to remove.</param> public void RemoveAuditRuleSpecific(JobObjectAuditRule rule) => base.RemoveAuditRuleSpecific(rule);
/// <summary> /// Searches for all audit control rules with the same user and AuditControlType (allow or deny) as the specified rule and, if found, removes them. /// </summary> /// <param name="rule">The Audit control rule to match.</param> public void RemoveAuditRuleAll(JobObjectAuditRule rule) => base.RemoveAuditRuleAll(rule);
/// <summary> /// Removes all audit control rules with the same user and AuditControlType (allow or deny) as the specified rule, and then adds the specified rule. /// </summary> /// <param name="rule">The Audit control rule to add.</param> public void SetAuditRule(JobObjectAuditRule rule) => base.SetAuditRule(rule);
/// <summary> /// Searches for an audit control rule with the same user and AuditControlType (allow or deny) as the specified rule, /// and with compatible inheritance and propagation flags; if such a rule is found, the rights contained in the specified Audit rule are removed from it. /// </summary> /// <param name="rule">The Audit control rule to match.</param> /// <returns><c>true</c> if a compatible rule is found; otherwise, <c>false</c>.</returns> public bool RemoveAuditRule(JobObjectAuditRule rule) => base.RemoveAuditRule(rule);
/// <summary> /// Searches for a matching audit control rule with which the new rule can be merged. If none are found, adds the new rule. /// </summary> /// <param name="rule">The Audit control rule to add.</param> public void AddAuditRule(JobObjectAuditRule rule) => base.AddAuditRule(rule);