CommonSecurityDescriptor.SetDiscretionaryAclProtection Método

Definición

Establece la protección de herencia para la lista de Access Control discrecional (DACL) asociada a este objeto CommonSecurityDescriptor. Las DACL protegidas no heredan las reglas de acceso de los contenedores primarios.

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)

Parámetros

isProtected
Boolean

true para proteger la DACL de la herencia.

preserveInheritance
Boolean

true para mantener las reglas de acceso heredadas en la DACL; false para quitar las reglas de acceso heredadas de la DACL.

Se aplica a