Bewerken

Share via


ObjectAuditRule Constructor

Definition

Initializes a new instance of the ObjectAuditRule class.

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

Parameters

identity
IdentityReference

The identity to which the access 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 access rule.

propagationFlags
PropagationFlags

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

objectType
Guid

The type of object to which the rule applies.

inheritedObjectType
Guid

The type of child object that can inherit the rule.

auditFlags
AuditFlags

The audit conditions.

Exceptions

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

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

Applies to