ObjectSecurity.SetAuditRuleProtection(Boolean, Boolean) Método

Definición

Establece o quita la protección de las reglas de auditoría asociadas a este ObjectSecurity objeto. Los objetos primarios no pueden modificar las reglas de auditoría protegidas a través de la herencia.

public:
 void SetAuditRuleProtection(bool isProtected, bool preserveInheritance);
public void SetAuditRuleProtection(bool isProtected, bool preserveInheritance);
member this.SetAuditRuleProtection : bool * bool -> unit
Public Sub SetAuditRuleProtection (isProtected As Boolean, preserveInheritance As Boolean)

Parámetros

isProtected
Boolean

true para proteger las reglas de auditoría asociadas a este ObjectSecurity objeto de herencia; false para permitir la herencia.

preserveInheritance
Boolean

true para conservar las reglas de auditoría heredadas; false para quitar las reglas de auditoría heredadas. Este parámetro se omite si isProtected es false.

Excepciones

Este método intenta quitar reglas heredadas de un sistema no canónico Access Control List (SACL).

Se aplica a