using System; using System.Runtime.InteropServices; using System.Security.Principal; namespace System.Security.AccessControl { /// Represents a set of access rights allowed or denied for a user or group. This class cannot be inherited. // Token: 0x02000275 RID: 629 [ComVisible(false)] public sealed class SemaphoreAccessRule : AccessRule { /// Initializes a new instance of the class, specifying the user or group the rule applies to, the access rights, and whether the specified access rights are allowed or denied. /// 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 rights allowed or denied. /// One of the values specifying whether the rights are allowed or denied. /// /// 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: 0x06001752 RID: 5970 RVA: 0x0004E020 File Offset: 0x0004C220 public SemaphoreAccessRule(IdentityReference identity, SemaphoreRights semaphoreRights, AccessControlType type) : base(identity, 0, false, InheritanceFlags.None, PropagationFlags.None, type) { this.semaphoreRights = semaphoreRights; } /// Initializes a new instance of the class, specifying the name of the user or group the rule applies to, the access rights, and whether the specified access rights are allowed or denied. /// The name of the user or group the rule applies to. /// A bitwise combination of values specifying the rights allowed or denied. /// One of the values specifying whether the rights are allowed or denied. /// /// specifies an invalid value.-or- specifies an invalid value. /// /// is zero. /// /// is null.-or- is a zero-length string.-or- is longer than 512 characters. // Token: 0x06001753 RID: 5971 RVA: 0x0004E038 File Offset: 0x0004C238 public SemaphoreAccessRule(string identity, SemaphoreRights semaphoreRights, AccessControlType type) : base(null, 0, false, InheritanceFlags.None, PropagationFlags.None, type) { this.semaphoreRights = semaphoreRights; } /// Gets the rights allowed or denied by the access rule. /// A bitwise combination of values indicating the rights allowed or denied by the access rule. // Token: 0x1700076A RID: 1898 // (get) Token: 0x06001754 RID: 5972 RVA: 0x0004E050 File Offset: 0x0004C250 public SemaphoreRights SemaphoreRights { get { return this.semaphoreRights; } } // Token: 0x0400129D RID: 4765 private SemaphoreRights semaphoreRights; } }