ObjectSecurity<T>.AccessRuleFactory 方法

定义

初始化表示相关安全对象的新访问控制规则 ObjectAccessRule 类的新实例。

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

表示用户帐户。

accessMask
Int32

访问类型。

isInherited
Boolean

如果该访问规则是继承的,则为 true;否则为 false

inheritanceFlags
InheritanceFlags

指定将访问掩码传播到子对象的方法。

propagationFlags
PropagationFlags

指定如何将访问控制项 (ACE) 传播到子对象。

type
AccessControlType

指定是允许还是拒绝访问。

返回

使用指定的访问权限、访问控制和标志为指定用户表示新的访问控制规则。

适用于