DirectoryObjectSecurity.AccessRuleFactory(IdentityReference, Int32, Boolean, InheritanceFlags, PropagationFlags, AccessControlType, Guid, Guid) 方法

定义

用指定的值初始化 AccessRule 类的新实例。Initializes a new instance of the AccessRule class with the specified values.

public:
 virtual 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, Guid objectType, Guid inheritedObjectType);
public virtual 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, Guid objectType, Guid inheritedObjectType);
override this.AccessRuleFactory : System.Security.Principal.IdentityReference * int * bool * System.Security.AccessControl.InheritanceFlags * System.Security.AccessControl.PropagationFlags * System.Security.AccessControl.AccessControlType * Guid * Guid -> System.Security.AccessControl.AccessRule
Public Overridable Function AccessRuleFactory (identityReference As IdentityReference, accessMask As Integer, isInherited As Boolean, inheritanceFlags As InheritanceFlags, propagationFlags As PropagationFlags, type As AccessControlType, objectType As Guid, inheritedObjectType As Guid) As AccessRule

参数

identityReference
IdentityReference

访问规则应用到其中的标识。The identity to which the access rule applies. 它必须是可强制转换为 SecurityIdentifier的对象。It must be an object that can be cast as a SecurityIdentifier.

accessMask
Int32

此规则的访问掩码。The access mask of this rule. 访问掩码是 32 位的匿名位集合,其含义由单个集成者定义。The access mask is a 32-bit collection of anonymous bits, the meaning of which is defined by the individual integrators.

isInherited
Boolean

如果此规则继承自父容器,则为 true。true if this rule is inherited from a parent container.

inheritanceFlags
InheritanceFlags

指定访问规则的继承属性。Specifies the inheritance properties of the access rule.

propagationFlags
PropagationFlags

指定继承的访问规则是否自动传播。Specifies whether inherited access rules are automatically propagated. 如果将 inheritanceFlags 设置为 None,则忽略传播标志。The propagation flags are ignored if inheritanceFlags is set to None.

type
AccessControlType

指定有效的访问控制类型。Specifies the valid access control type.

objectType
Guid

新访问规则所应用到的对象的类标识。The identity of the class of objects to which the new access rule applies.

inheritedObjectType
Guid

可以继承新访问规则的子对象的类标识。The identity of the class of child objects which can inherit the new access rule.

返回

AccessRule

此方法创建的 AccessRule 对象。The AccessRule object that this method creates.

适用于