SetProtected Method
Topic Last Modified: 2006-06-13
Protects a DACL object from inheriting any ACEs from a parent folder.
Applies To
Syntax
objDACL.SetProtected(boolflag);
Parameters
- boolflag
A Boolean value of either TRUE or FALSE.
Return Value
No return value.
Remarks
Specifying TRUE prevents the DACL from inheriting ACEs.
This method makes copies of the inherited entities, except for the ones that already have an explicit ACE. If there is already an explicit ACE, this method discards the inherited entity without making a copy. The method then removes all inherited entities.
To have a protected DACL not make copies of inherited entities, first remove all inherited entities by calling the RemoveInheritedEntities Method, and then call SetProtected(TRUE).
Example
objDacl.SetProtected(true)