CommonSecurityDescriptor.SetDiscretionaryAclProtection Metod

Definition

Anger arvsskydd för DACL (Discretionary Access Control List) som är associerat med det här CommonSecurityDescriptor-objektet. DACL:er som skyddas ärver inte åtkomstregler från överordnade containrar.

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)

Parametrar

isProtected
Boolean

true för att skydda DACL från arv.

preserveInheritance
Boolean

true för att behålla ärvda åtkomstregler i DACL; false för att ta bort ärvda åtkomstregler från DACL.

Gäller för