다음을 통해 공유


EventWaitHandleSecurity.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

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

isInherited
Boolean

명명된 대기 핸들에는 계층이 없으므로 의미가 없습니다.

inheritanceFlags
InheritanceFlags

명명된 대기 핸들에는 계층이 없으므로 의미가 없습니다.

propagationFlags
PropagationFlags

명명된 대기 핸들에는 계층이 없으므로 의미가 없습니다.

type
AccessControlType

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

반환

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

예외

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

identityReference이(가) null인 경우

또는

accessMask가 0입니다.

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

설명

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

참고

상속 및 전파 플래그는 명명된 이벤트에 의미가 없지만 여전히 지정할 수 있습니다. 예를 들어 호환되는 규칙의 조합을 방해하여 규칙의 유지 관리를 불필요하게 복잡하게 하므로 권장되지 않습니다.

적용 대상