Represents an abstraction of an access control entry (ACE) that defines an audit rule for a file or directory. This class cannot be inherited.
See Also: FileSystemAuditRule Members
The System.Security.AccessControl.FileSystemAuditRule class represents an abstraction of an underlying access control entry (ACE) that specifies a user account, the type of access to provide (read, write, and so on), and whether to perform auditing. This class can also specify how audit rules are inherited from and propagated to objects.
To permit file and directory auditing on Windows NT or later, you must enable Audit Access Security policy on your machine. By default, this policy is set to No Auditing.
To enable the Audit Access Security policy, perform the following steps:[The 'ordered' type of list has not been implemented in the ECMA stylesheet.]
Note that an audit rule for a user account requires a corresponding access rule for the same user account.
Use the System.Security.AccessControl.FileSystemAuditRule class to create a new audit rule. You can persist this rule using the System.Security.AccessControl.FileSecurity or System.Security.AccessControl.DirectorySecurity class.