scripts
This commit is contained in:
@@ -0,0 +1,49 @@
|
||||
using System;
|
||||
using System.Security.Principal;
|
||||
|
||||
namespace System.Security.AccessControl
|
||||
{
|
||||
/// <summary>Represents a combination of a user's identity and an access mask. An <see cref="T:System.Security.AccessControl.AuditRule" /> 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.</summary>
|
||||
// Token: 0x020004AB RID: 1195
|
||||
public abstract class AuditRule : AuthorizationRule
|
||||
{
|
||||
/// <summary>Initializes a new instance of the <see cref="T:System.Security.AccessControl.AuditRule" /> class by using the specified values.</summary>
|
||||
/// <param name="identity">The identity to which the audit rule applies. It must be an object that can be cast as a <see cref="T:System.Security.Principal.SecurityIdentifier" />.</param>
|
||||
/// <param name="accessMask">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.</param>
|
||||
/// <param name="isInherited">true to inherit this rule from a parent container.</param>
|
||||
/// <param name="inheritanceFlags">The inheritance properties of the audit rule.</param>
|
||||
/// <param name="propagationFlags">Whether inherited audit rules are automatically propagated. The propagation flags are ignored if <paramref name="inheritanceFlags" /> is set to <see cref="F:System.Security.AccessControl.InheritanceFlags.None" />.</param>
|
||||
/// <param name="auditFlags">The conditions for which the rule is audited.</param>
|
||||
/// <exception cref="T:System.ArgumentException">The value of the <paramref name="identity" /> parameter cannot be cast as a <see cref="T:System.Security.Principal.SecurityIdentifier" />, or the <paramref name="auditFlags" /> parameter contains an invalid value.</exception>
|
||||
/// <exception cref="T:System.ArgumentOutOfRangeException">The value of the <paramref name="accessMask" /> parameter is zero, or the <paramref name="inheritanceFlags" /> or <paramref name="propagationFlags" /> parameters contain unrecognized flag values.</exception>
|
||||
// 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;
|
||||
}
|
||||
|
||||
/// <summary>Gets the audit flags for this audit rule.</summary>
|
||||
/// <returns>A bitwise combination of the enumeration values. This combination specifies the audit conditions for this audit rule.</returns>
|
||||
// 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;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user