using System; 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: 0x020004DA RID: 1242 public sealed class RegistryAccessRule : 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 indicating the rights allowed or denied. /// One of the values indicating 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: 0x06002E1E RID: 11806 RVA: 0x00094298 File Offset: 0x00092498 public RegistryAccessRule(IdentityReference identity, RegistryRights registryRights, AccessControlType type) : this(identity, registryRights, InheritanceFlags.None, PropagationFlags.None, type) { } /// 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 indicating the rights allowed or denied. /// One of the values indicating 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: 0x06002E1F RID: 11807 RVA: 0x000942A8 File Offset: 0x000924A8 public RegistryAccessRule(string identity, RegistryRights registryRights, AccessControlType type) : this(new SecurityIdentifier(identity), registryRights, type) { } /// Initializes a new instance of the class, specifying the user or group the rule applies to, the access rights, the inheritance flags, the propagation flags, 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. /// A bitwise combination of flags specifying how access rights are inherited from other objects. /// A bitwise combination of flags specifying how access rights are propagated to other objects. /// One of the values specifying whether the rights are allowed or denied. /// /// specifies an invalid value.-or- specifies an invalid value.-or- 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: 0x06002E20 RID: 11808 RVA: 0x000942B8 File Offset: 0x000924B8 public RegistryAccessRule(IdentityReference identity, RegistryRights registryRights, InheritanceFlags inheritanceFlags, PropagationFlags propagationFlags, AccessControlType type) : base(identity, 0, false, inheritanceFlags, propagationFlags, type) { this.rights = registryRights; } /// Initializes a new instance of the class, specifying the name of the user or group the rule applies to, the access rights, the inheritance flags, the propagation flags, 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 indicating the rights allowed or denied. /// A bitwise combination of flags specifying how access rights are inherited from other objects. /// A bitwise combination of flags specifying how access rights are propagated to other objects. /// One of the values specifying whether the rights are allowed or denied. /// /// specifies an invalid value.-or- specifies an invalid value.-or- 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: 0x06002E21 RID: 11809 RVA: 0x000942D0 File Offset: 0x000924D0 public RegistryAccessRule(string identity, RegistryRights registryRights, InheritanceFlags inheritanceFlags, PropagationFlags propagationFlags, AccessControlType type) : this(new SecurityIdentifier(identity), registryRights, inheritanceFlags, propagationFlags, type) { } /// 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: 0x17000922 RID: 2338 // (get) Token: 0x06002E22 RID: 11810 RVA: 0x000942E4 File Offset: 0x000924E4 public RegistryRights RegistryRights { get { return this.rights; } } // Token: 0x04001229 RID: 4649 private RegistryRights rights; } }