RegistrySecurity.AccessRuleFactory 메서드

정의

지정된 액세스 권한, 액세스 제어 및 플래그로 지정한 사용자의 새 액세스 제어 규칙을 만듭니다.

public:
 override System::Security::AccessControl::AccessRule ^ AccessRuleFactory(System::Security::Principal::IdentityReference ^ identityReference, int accessMask, bool isInherited, System::Security::AccessControl::InheritanceFlags inheritanceFlags, System::Security::AccessControl::PropagationFlags propagationFlags, System::Security::AccessControl::AccessControlType type);
public override System.Security.AccessControl.AccessRule AccessRuleFactory (System.Security.Principal.IdentityReference identityReference, int accessMask, bool isInherited, System.Security.AccessControl.InheritanceFlags inheritanceFlags, System.Security.AccessControl.PropagationFlags propagationFlags, System.Security.AccessControl.AccessControlType type);
override this.AccessRuleFactory : System.Security.Principal.IdentityReference * int * bool * System.Security.AccessControl.InheritanceFlags * System.Security.AccessControl.PropagationFlags * System.Security.AccessControl.AccessControlType -> System.Security.AccessControl.AccessRule
Public Overrides Function AccessRuleFactory (identityReference As IdentityReference, accessMask As Integer, isInherited As Boolean, inheritanceFlags As InheritanceFlags, propagationFlags As PropagationFlags, type As AccessControlType) As AccessRule

매개 변수

identityReference
IdentityReference

규칙을 적용할 사용자 또는 그룹을 식별하는 IdentityReference입니다.

accessMask
Int32

정수로 캐스팅된 허용하거나 거부할 액세스 권한을 지정하는 RegistryRights 값의 비트 조합입니다.

isInherited
Boolean

규칙의 상속 여부를 지정하는 부울 값입니다.

inheritanceFlags
InheritanceFlags

규칙이 하위 키에 상속되는 방식을 지정하는 InheritanceFlags 값의 비트 조합입니다.

propagationFlags
PropagationFlags

규칙이 하위 키에 상속되는 방식을 수정하는 PropagationFlags 값의 비트 조합입니다. inheritanceFlags의 값이 None이면 의미가 없습니다.

type
AccessControlType

권한 허용 여부를 지정하는 AccessControlType 값 중 하나입니다.

반환

지정한 사용자의 지정한 권한을 나타내는 RegistryAccessRule 개체입니다.

예외

accessMask, inheritanceFlags, propagationFlags 또는 type에 잘못된 값을 지정하는 경우

identityReference이(가) null인 경우

또는

accessMask가 0입니다.

identityReference의 형식이 SecurityIdentifier도 아니고 NTAccount와 같이 SecurityIdentifier 형식으로 변환할 수 있는 형식도 아닌 경우

설명

액세스 제어 규칙을 만드는 권장되는 방법은 클래스의 생성자를 사용하는 것입니다 RegistryAccessRule .

참고

플래그를 InheritanceFlags.ObjectInherit 지정할 수 있지만 아무 소용이 없습니다. 액세스 제어를 위해 하위 키의 이름/값 쌍은 별도의 개체가 아닙니다. 이름/값 쌍에 대한 액세스 권한은 하위 키의 권한에 의해 제어됩니다. 또한 모든 하위 키는 컨테이너(즉, 다른 하위 키를 포함할 수 있음)이므로 플래그의 ObjectInherit 영향을 받지 않습니다. 마지막으로 플래그를 ObjectInherit 지정하면 호환되는 규칙의 일반적인 조합을 방해하므로 규칙의 유지 관리가 불필요하게 복잡해질 수 있습니다.

적용 대상