using System; using System.Runtime.InteropServices; using System.Security.Principal; namespace System.Security.AccessControl { /// Represents a set of access rights to be audited for a user or group. This class cannot be inherited. // Token: 0x02000276 RID: 630 [ComVisible(false)] public sealed class SemaphoreAuditRule : AuditRule { /// Initializes a new instance of the class, specifying the user or group to audit, the rights to audit, and whether to audit success, failure, or both. /// The user or group the rule applies to. Must be of type or a type such as that can be converted to type . /// A bitwise combination of values specifying the kinds of access to audit. /// A bitwise combination of values specifying whether to audit success, failure, or both. /// /// specifies an invalid value.-or- specifies an invalid value. /// /// is null. -or- is zero. /// /// is neither of type nor of a type such as that can be converted to type . // Token: 0x06001755 RID: 5973 RVA: 0x0004E058 File Offset: 0x0004C258 public SemaphoreAuditRule(IdentityReference identity, SemaphoreRights semaphoreRights, AuditFlags flags) : base(identity, 0, false, InheritanceFlags.None, PropagationFlags.None, flags) { this.semaphoreRights = semaphoreRights; } /// Gets the access rights affected by the audit rule. /// A bitwise combination of values that indicates the rights affected by the audit rule. // Token: 0x1700076B RID: 1899 // (get) Token: 0x06001756 RID: 5974 RVA: 0x0004E070 File Offset: 0x0004C270 public SemaphoreRights SemaphoreRights { get { return this.semaphoreRights; } } // Token: 0x0400129E RID: 4766 private SemaphoreRights semaphoreRights; } }