using System;
using System.Security.Principal;
namespace System.Security.AccessControl
{
/// Represents an abstraction of an access control entry (ACE) that defines an audit rule for a file or directory. This class cannot be inherited.
// Token: 0x020004C3 RID: 1219
public sealed class FileSystemAuditRule : AuditRule
{
/// Initializes a new instance of the class using a reference to a user account, a value that specifies the type of operation associated with the audit rule, and a value that specifies when to perform auditing.
/// An object that encapsulates a reference to a user account.
/// One of the values that specifies the type of operation associated with the audit rule.
/// One of the values that specifies when to perform auditing.
/// The parameter is not an object.
/// The parameter is null.
/// An incorrect enumeration was passed to the parameter.-or-The value was passed to the parameter.
// Token: 0x06002D51 RID: 11601 RVA: 0x00093960 File Offset: 0x00091B60
public FileSystemAuditRule(IdentityReference identity, FileSystemRights fileSystemRights, AuditFlags flags)
: this(identity, fileSystemRights, InheritanceFlags.None, PropagationFlags.None, flags)
{
}
/// Initializes a new instance of the class using a user account name, a value that specifies the type of operation associated with the audit rule, and a value that specifies when to perform auditing.
/// The name of a user account.
/// One of the values that specifies the type of operation associated with the audit rule.
/// One of the values that specifies when to perform auditing.
/// An incorrect enumeration was passed to the parameter.-or-The value was passed to the parameter.
// Token: 0x06002D52 RID: 11602 RVA: 0x00093970 File Offset: 0x00091B70
public FileSystemAuditRule(string identity, FileSystemRights fileSystemRights, AuditFlags flags)
: this(new SecurityIdentifier(identity), fileSystemRights, flags)
{
}
/// Initializes a new instance of the class using the name of a reference to a user account, a value that specifies the type of operation associated with the audit rule, a value that determines how rights are inherited, a value that determines how rights are propagated, and a value that specifies when to perform auditing.
/// An object that encapsulates a reference to a user account.
/// One of the values that specifies the type of operation associated with the audit rule.
/// One of the values that specifies how access masks are propagated to child objects.
/// One of the values that specifies how Access Control Entries (ACEs) are propagated to child objects.
/// One of the values that specifies when to perform auditing.
/// The parameter is not an object.
/// The parameter is null.
/// An incorrect enumeration was passed to the parameter.-or-The value was passed to the parameter.
// Token: 0x06002D53 RID: 11603 RVA: 0x00093980 File Offset: 0x00091B80
public FileSystemAuditRule(IdentityReference identity, FileSystemRights fileSystemRights, InheritanceFlags inheritanceFlags, PropagationFlags propagationFlags, AuditFlags flags)
: base(identity, 0, false, inheritanceFlags, propagationFlags, flags)
{
this.rights = fileSystemRights;
}
/// Initializes a new instance of the class using the name of a user account, a value that specifies the type of operation associated with the audit rule, a value that determines how rights are inherited, a value that determines how rights are propagated, and a value that specifies when to perform auditing.
/// The name of a user account.
/// One of the values that specifies the type of operation associated with the audit rule.
/// One of the values that specifies how access masks are propagated to child objects.
/// One of the values that specifies how Access Control Entries (ACEs) are propagated to child objects.
/// One of the values that specifies when to perform auditing.
// Token: 0x06002D54 RID: 11604 RVA: 0x00093998 File Offset: 0x00091B98
public FileSystemAuditRule(string identity, FileSystemRights fileSystemRights, InheritanceFlags inheritanceFlags, PropagationFlags propagationFlags, AuditFlags flags)
: this(new SecurityIdentifier(identity), fileSystemRights, inheritanceFlags, propagationFlags, flags)
{
}
/// Gets the flags associated with the current object.
/// The flags associated with the current object.
// Token: 0x170008E0 RID: 2272
// (get) Token: 0x06002D55 RID: 11605 RVA: 0x000939AC File Offset: 0x00091BAC
public FileSystemRights FileSystemRights
{
get
{
return this.rights;
}
}
// Token: 0x040011DF RID: 4575
private FileSystemRights rights;
}
}