ObjectSecurity.SetAccessRuleProtection(Boolean, Boolean) 메서드

정의

ObjectSecurity 개체와 연결된 액세스 규칙의 보호를 설정하거나 제거합니다. 상속을 통해 부모 개체에서 보호된 액세스 규칙을 수정할 수 없습니다.

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

매개 변수

isProtected
Boolean

true 상속을 허용하려면 이 ObjectSecurity 개체와 연결된 액세스 규칙을 상속 false 으로부터 보호합니다.

preserveInheritance
Boolean

true 상속된 액세스 규칙을 유지하려면 false 상속된 액세스 규칙을 제거합니다. 이 매개 변수는 무시됩니다(있는 isProtected경우false).

예외

이 메서드는 DACL(정식이 아닌 임의 Access Control 목록)에서 상속된 규칙을 제거하려고 시도합니다.

설명

메서드 isProtected=true 를 호출할 preserveInheritance=true때 개체의 새 ACL을 탐색하고 DENY 형식 ACE를 확인해야 합니다. 정식으로 정렬된 DACL의 경우 DENY ACE가 DACL 앞에 나타나야 합니다. ACL의 정식 순서에 대한 자세한 내용은 DACL의 ACE 순서를 참조하세요.

적용 대상