DirectoryObjectSecurity.AuditRuleFactory Method

Definition

Initializes a new instance of the AuditRule class with the specified values.

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

Parameters

identityReference
IdentityReference

The identity to which the audit rule applies. It must be an object that can be cast as a SecurityIdentifier.

accessMask
Int32

The access mask of this rule. The access mask is a 32-bit collection of anonymous bits, the meaning of which is defined by the individual integrators.

isInherited
Boolean

true if this rule is inherited from a parent container.

inheritanceFlags
InheritanceFlags

Specifies the inheritance properties of the audit rule.

propagationFlags
PropagationFlags

Specifies whether inherited audit rules are automatically propagated. The propagation flags are ignored if inheritanceFlags is set to None.

flags
AuditFlags

Specifies the conditions for which the rule is audited.

objectType
Guid

The identity of the class of objects to which the new audit rule applies.

inheritedObjectType
Guid

The identity of the class of child objects which can inherit the new audit rule.

Returns

The AuditRule object that this method creates.

Applies to