ObjectSecurity.SetAuditRuleProtection(Boolean, Boolean) 메서드

정의

ObjectSecurity 개체와 관련된 감사 규칙의 보호를 설정하거나 제거합니다. 보호된 감사 규칙은 부모 개체에서 상속을 통해 수정할 수 없습니다.

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)

매개 변수

isProtected
Boolean

ObjectSecurity 개체와 관련된 감사 규칙을 상속으로부터 보호하려면 true이고, 상속을 허용하려면 false입니다.

preserveInheritance
Boolean

상속된 감사 규칙을 유지하려면 true이고, 상속된 감사 규칙을 제거하려면 false입니다. isProtectedfalse이면 이 매개 변수는 무시됩니다.

예외

이 메서드는 정식이 아닌 SACL(시스템 액세스 제어 목록)에서 상속된 규칙을 제거하려고 시도하는 경우

적용 대상