ObjectAuditRule(IdentityReference, Int32, Boolean, InheritanceFlags, PropagationFlags, Guid, Guid, AuditFlags) 构造函数
定义
初始化 ObjectAuditRule 类的新实例。Initializes a new instance of the ObjectAuditRule class.
protected:
ObjectAuditRule(System::Security::Principal::IdentityReference ^ identity, int accessMask, bool isInherited, System::Security::AccessControl::InheritanceFlags inheritanceFlags, System::Security::AccessControl::PropagationFlags propagationFlags, Guid objectType, Guid inheritedObjectType, System::Security::AccessControl::AuditFlags auditFlags);
protected ObjectAuditRule (System.Security.Principal.IdentityReference identity, int accessMask, bool isInherited, System.Security.AccessControl.InheritanceFlags inheritanceFlags, System.Security.AccessControl.PropagationFlags propagationFlags, Guid objectType, Guid inheritedObjectType, System.Security.AccessControl.AuditFlags auditFlags);
new System.Security.AccessControl.ObjectAuditRule : System.Security.Principal.IdentityReference * int * bool * System.Security.AccessControl.InheritanceFlags * System.Security.AccessControl.PropagationFlags * Guid * Guid * System.Security.AccessControl.AuditFlags -> System.Security.AccessControl.ObjectAuditRule
Protected Sub New (identity As IdentityReference, accessMask As Integer, isInherited As Boolean, inheritanceFlags As InheritanceFlags, propagationFlags As PropagationFlags, objectType As Guid, inheritedObjectType As Guid, auditFlags As AuditFlags)
参数
- identity
- 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
是否会自动传播继承的访问规则。Whether inherited access rules are automatically propagated. 如果将 inheritanceFlags 设置为 None,则忽略传播标志。The propagation flags are ignored if inheritanceFlags is set to None.
- objectType
- Guid
应用此规则的对象的类型。The type of object to which the rule applies.
- inheritedObjectType
- Guid
能够继承此规则的子对象的类型。The type of child object that can inherit the rule.
- auditFlags
- AuditFlags
审核条件。The audit conditions.
例外
identity 参数的值不能强制转换为 SecurityIdentifier,否则 type 参数包含无效值。The value of the identity parameter cannot be cast as a SecurityIdentifier, or the type parameter contains an invalid value.
accessMask 参数的值为零,或者 inheritanceFlags 或 propagationFlags 参数包含无法识别的标志值。The value of the accessMask parameter is 0, or the inheritanceFlags or propagationFlags parameters contain unrecognized flag values.