ObjectSecurity.SetAuditRuleProtection(Boolean, Boolean) Método

Definição

Define ou remove a proteção das regras de auditoria associadas a este ObjectSecurity objeto. As regras de auditoria protegidas não podem ser modificadas por objetos-pais através da herança.

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 proteger as regras de auditoria associadas a este ObjectSecurity objeto da herança; false permitir a herança.

preserveInheritance
Boolean

true preservar regras de auditoria herdadas; false para remover regras de auditoria herdada. Este parâmetro é ignorado se isProtected for false.

Exceções

Este método tenta remover regras herdadas de uma System Controlo de Acesso List (SACL) não canónica.

Aplica-se a