CommonSecurityDescriptor.SetDiscretionaryAclProtection Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Sets the inheritance protection for the Discretionary Access Control List (DACL) associated with this CommonSecurityDescriptor object. DACLs that are protected do not inherit access rules from parent containers.
public:
void SetDiscretionaryAclProtection(bool isProtected, bool preserveInheritance);
public void SetDiscretionaryAclProtection (bool isProtected, bool preserveInheritance);
member this.SetDiscretionaryAclProtection : bool * bool -> unit
Public Sub SetDiscretionaryAclProtection (isProtected As Boolean, preserveInheritance As Boolean)
Parameters
- isProtected
- Boolean
true
to protect the DACL from inheritance.
- preserveInheritance
- Boolean
true
to keep inherited access rules in the DACL; false
to remove inherited access rules from the DACL.
Applies to
التعاون معنا على GitHub
يمكن العثور على مصدر هذا المحتوى على GitHub حيث يمكنك أيضاً إضافة مشاكل وطلبات سحب ومراجعتها. للحصول على معلومات إضافية، اطلع على دليل المساهم لدينا.