ActiveDirectorySecurity::AuditRuleFactory Method (IdentityReference^, Int32, Boolean, InheritanceFlags, PropagationFlags, AuditFlags, Guid, Guid)
Creates an AuditRule object with the specified values.
Assembly: System.DirectoryServices (in System.DirectoryServices.dll)
public: virtual AuditRule^ AuditRuleFactory( IdentityReference^ identityReference, int accessMask, bool isInherited, InheritanceFlags inheritanceFlags, PropagationFlags propagationFlags, AuditFlags flags, Guid objectGuid, Guid inheritedObjectGuid ) override sealed
Parameters
- identityReference
-
Type:
System.Security.Principal::IdentityReference^
An IdentityReference object such as an NTAccount object that resolves to a security identifier (SID).
- accessMask
-
Type:
System::Int32
An Int32 bitmask that shows the access privileges to use.
- isInherited
-
Type:
System::Boolean
A Boolean object that indicates whether ACEs are inherited. true if ACEs are inherited; otherwise, false.
- inheritanceFlags
-
Type:
System.Security.AccessControl::InheritanceFlags
An InheritanceFlags object that contains inheritance flags on a directory object.
- propagationFlags
-
Type:
System.Security.AccessControl::PropagationFlags
A PropagationFlags object that contains inheritance propagation flags on a directory object.
- flags
-
Type:
System.Security.AccessControl::AuditFlags
An AuditFlags object that contains the audit flags for this ActiveDirectorySecurity object.
- objectGuid
-
Type:
System::Guid
A Guid object that contains the Guido of the directory object.
- inheritedObjectGuid
-
Type:
System::Guid
A Guid object that contains the Guido of the inherited directory object.
Return Value
Type: System.Security.AccessControl::AuditRule^The AuditRule that corresponds to the ActiveDirectorySecurity object.
Available since 2.0