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