/// <summary> /// Searches for an access control rule with the same user and AccessControlType (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 access rule are removed from it. /// </summary> /// <param name="rule">The access control rule to match.</param> /// <returns><c>true</c> if a compatible rule is found; otherwise, <c>false</c>.</returns> public bool RemoveAccessRule(JobObjectAccessRule rule) => base.RemoveAccessRule(rule);
/// <summary> /// Removes all access control rules with the same user as the specified rule, regardless of AccessControlType, and then adds the specified rule. /// </summary> /// <param name="rule">The access control rule to add.</param> public void ResetAccessRule(JobObjectAccessRule rule) => base.ResetAccessRule(rule);
/// <summary> /// Removes all access control rules with the same user and AccessControlType (allow or deny) as the specified rule, and then adds the specified rule. /// </summary> /// <param name="rule">The access control rule to add.</param> public void SetAccessRule(JobObjectAccessRule rule) => base.SetAccessRule(rule);
/// <summary> /// Searches for a matching access control rule with which the new rule can be merged. If none are found, adds the new rule. /// </summary> /// <param name="rule">The access control rule to add.</param> public void AddAccessRule(JobObjectAccessRule rule) => base.AddAccessRule(rule);
/// <summary> /// Searches for an access control rule that exactly matches the specified rule and, if found, removes it. /// </summary> /// <param name="rule">The access control rule to remove.</param> public void RemoveAccessRuleSpecific(JobObjectAccessRule rule) => base.RemoveAccessRuleSpecific(rule);
/// <summary> /// Searches for all access control rules with the same user and AccessControlType (allow or deny) as the specified rule and, if found, removes them. /// </summary> /// <param name="rule">The access control rule to match.</param> public void RemoveAccessRuleAll(JobObjectAccessRule rule) => base.RemoveAccessRuleAll(rule);