using System;
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: 0x020004DB RID: 1243
public sealed class RegistryAuditRule : AuditRule
{
/// Initializes a new instance of the class, specifying the user or group to audit, the rights to audit, whether to take inheritance into account, 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 the audit rule applies to subkeys of the current key.
/// A bitwise combination of values that affect the way an inherited audit rule is propagated to subkeys of the current key.
/// A bitwise combination of values specifying whether to audit success, failure, or both.
///
/// 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: 0x06002E23 RID: 11811 RVA: 0x000942EC File Offset: 0x000924EC
public RegistryAuditRule(IdentityReference identity, RegistryRights registryRights, InheritanceFlags inheritanceFlags, PropagationFlags propagationFlags, AuditFlags flags)
: base(identity, 0, false, inheritanceFlags, propagationFlags, flags)
{
this.rights = registryRights;
}
/// Initializes a new instance of the class, specifying the name of the user or group to audit, the rights to audit, whether to take inheritance into account, and whether to audit success, failure, or both.
/// The name of the user or group the rule applies to.
/// A bitwise combination of values specifying the kinds of access to audit.
/// A combination of flags that specifies whether the audit rule applies to subkeys of the current key.
/// A combination of flags that affect the way an inherited audit rule is propagated to subkeys of the current key.
/// A bitwise combination of values specifying whether to audit success, failure, or both.
///
/// 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: 0x06002E24 RID: 11812 RVA: 0x00094304 File Offset: 0x00092504
public RegistryAuditRule(string identity, RegistryRights registryRights, InheritanceFlags inheritanceFlags, PropagationFlags propagationFlags, AuditFlags flags)
: this(new SecurityIdentifier(identity), registryRights, inheritanceFlags, propagationFlags, flags)
{
}
/// Gets the access rights affected by the audit rule.
/// A bitwise combination of values that indicates the rights affected by the audit rule.
// Token: 0x17000923 RID: 2339
// (get) Token: 0x06002E25 RID: 11813 RVA: 0x00094318 File Offset: 0x00092518
public RegistryRights RegistryRights
{
get
{
return this.rights;
}
}
// Token: 0x0400122A RID: 4650
private RegistryRights rights;
}
}