Sets or removes protection of the audit rules associated with this System.Security.AccessControl.ObjectSecurity object. Protected audit rules cannot be modified by parent objects through inheritance.
- isProtected
- true to protect the audit rules associated with this System.Security.AccessControl.ObjectSecurity object from inheritance; false to allow inheritance.
- preserveInheritance
- true to preserve inherited audit rules; false to remove inherited audit rules. This parameter is ignored if isProtected is false.