Edit

Share via


ObjectSecurity<T>.AuditRuleFactory Method

Definition

Initializes a new instance of the AuditRule class representing the specified audit rule for the specified user.

public:
 override 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);
public override 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);
override this.AuditRuleFactory : System.Security.Principal.IdentityReference * int * bool * System.Security.AccessControl.InheritanceFlags * System.Security.AccessControl.PropagationFlags * System.Security.AccessControl.AuditFlags -> System.Security.AccessControl.AuditRule
Public Overrides Function AuditRuleFactory (identityReference As IdentityReference, accessMask As Integer, isInherited As Boolean, inheritanceFlags As InheritanceFlags, propagationFlags As PropagationFlags, flags As AuditFlags) As AuditRule

Parameters

identityReference
IdentityReference

Represents a user account.

accessMask
Int32

An integer that specifies an access type.

isInherited
Boolean

true if the access rule is inherited; otherwise, false.

inheritanceFlags
InheritanceFlags

Specifies how to propagate access masks to child objects.

propagationFlags
PropagationFlags

Specifies how to propagate Access Control Entries (ACEs) to child objects.

flags
AuditFlags

Describes the type of auditing to perform.

Returns

The specified audit rule for the specified user.

Applies to