DirectoryObjectSecurity.AuditRuleFactory 方法

定义

用指定的值初始化 AuditRule 类的新实例。

public:
 virtual System::Security::AccessControl::AuditRule ^ AuditRuleFactory(System::Security::Principal::IdentityReference ^ identityReference, int accessMask, bool isInherited, System::Security::AccessControl::InheritanceFlags inheritanceFlags, System::Security::AccessControl::PropagationFlags propagationFlags, System::Security::AccessControl::AuditFlags flags, Guid objectType, Guid inheritedObjectType);
public virtual System.Security.AccessControl.AuditRule AuditRuleFactory (System.Security.Principal.IdentityReference identityReference, int accessMask, bool isInherited, System.Security.AccessControl.InheritanceFlags inheritanceFlags, System.Security.AccessControl.PropagationFlags propagationFlags, System.Security.AccessControl.AuditFlags flags, Guid objectType, Guid inheritedObjectType);
override this.AuditRuleFactory : System.Security.Principal.IdentityReference * int * bool * System.Security.AccessControl.InheritanceFlags * System.Security.AccessControl.PropagationFlags * System.Security.AccessControl.AuditFlags * Guid * Guid -> System.Security.AccessControl.AuditRule
Public Overridable Function AuditRuleFactory (identityReference As IdentityReference, accessMask As Integer, isInherited As Boolean, inheritanceFlags As InheritanceFlags, propagationFlags As PropagationFlags, flags As AuditFlags, objectType As Guid, inheritedObjectType As Guid) As AuditRule

参数

identityReference
IdentityReference

审核规则应用到其中的标识。 它必须是可强制转换为 SecurityIdentifier 的对象。

accessMask
Int32

此规则的访问掩码。 访问掩码是 32 位的匿名位集合,其含义由单个集成者定义。

isInherited
Boolean

如果此规则继承自父容器,则为 true

inheritanceFlags
InheritanceFlags

指定审核规则的继承属性。

propagationFlags
PropagationFlags

指定审核规则是否自动传播。 如果将 inheritanceFlags 设置为 None,则忽略传播标志。

flags
AuditFlags

指定对其审核规则的条件。

objectType
Guid

新审核规则所应用到的对象的类标识。

inheritedObjectType
Guid

可以继承新审核规则的子对象的类标识。

返回

此方法创建的 AuditRule 对象。

适用于