Redigera

Dela via


AuditRule Constructor

Definition

Initializes a new instance of the AuditRule class by using the specified values.

protected:
 AuditRule(System::Security::Principal::IdentityReference ^ identity, int accessMask, bool isInherited, System::Security::AccessControl::InheritanceFlags inheritanceFlags, System::Security::AccessControl::PropagationFlags propagationFlags, System::Security::AccessControl::AuditFlags auditFlags);
protected AuditRule (System.Security.Principal.IdentityReference identity, int accessMask, bool isInherited, System.Security.AccessControl.InheritanceFlags inheritanceFlags, System.Security.AccessControl.PropagationFlags propagationFlags, System.Security.AccessControl.AuditFlags auditFlags);
new System.Security.AccessControl.AuditRule : System.Security.Principal.IdentityReference * int * bool * System.Security.AccessControl.InheritanceFlags * System.Security.AccessControl.PropagationFlags * System.Security.AccessControl.AuditFlags -> System.Security.AccessControl.AuditRule
Protected Sub New (identity As IdentityReference, accessMask As Integer, isInherited As Boolean, inheritanceFlags As InheritanceFlags, propagationFlags As PropagationFlags, auditFlags As AuditFlags)

Parameters

identity
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 to inherit this rule from a parent container.

inheritanceFlags
InheritanceFlags

The inheritance properties of the audit rule.

propagationFlags
PropagationFlags

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

auditFlags
AuditFlags

The conditions for which the rule is audited.

Exceptions

The value of the identity parameter cannot be cast as a SecurityIdentifier, or the auditFlags parameter contains an invalid value.

The value of the accessMask parameter is zero, or the inheritanceFlags or propagationFlags parameters contain unrecognized flag values.

Notes to Inheritors

This method should not be used by integrators. Integrators should never create inherited rules.

Applies to