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

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

preserveInheritance
Boolean

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

예외

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

설명

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

적용 대상