using System;
using System.Security.Principal;
namespace System.Security.AccessControl
{
/// Represents a combination of a user's identity and an access mask. An object also contains information about how the rule is inherited by child objects, how that inheritance is propagated, and for what conditions it is audited.
// Token: 0x020004AB RID: 1195
public abstract class AuditRule : AuthorizationRule
{
/// Initializes a new instance of the class by using the specified values.
/// The identity to which the audit rule applies. It must be an object that can be cast as a .
/// 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.
/// true to inherit this rule from a parent container.
/// The inheritance properties of the audit rule.
/// Whether inherited audit rules are automatically propagated. The propagation flags are ignored if is set to .
/// The conditions for which the rule is audited.
/// The value of the parameter cannot be cast as a , or the parameter contains an invalid value.
/// The value of the parameter is zero, or the or parameters contain unrecognized flag values.
// Token: 0x06002CAF RID: 11439 RVA: 0x00092EB4 File Offset: 0x000910B4
protected AuditRule(IdentityReference identity, int accessMask, bool isInherited, InheritanceFlags inheritanceFlags, PropagationFlags propagationFlags, AuditFlags auditFlags)
: base(identity, accessMask, isInherited, inheritanceFlags, propagationFlags)
{
if (!(identity is SecurityIdentifier))
{
throw new ArgumentException("identity");
}
if (accessMask == 0)
{
throw new ArgumentOutOfRangeException();
}
this.auditFlags = auditFlags;
}
/// Gets the audit flags for this audit rule.
/// A bitwise combination of the enumeration values. This combination specifies the audit conditions for this audit rule.
// Token: 0x170008B9 RID: 2233
// (get) Token: 0x06002CB0 RID: 11440 RVA: 0x00092EF0 File Offset: 0x000910F0
public AuditFlags AuditFlags
{
get
{
return this.auditFlags;
}
}
// Token: 0x04001196 RID: 4502
private AuditFlags auditFlags;
}
}