System.Core 4.0.0.0 System.Security.AccessControl.AuditRule

Audit rules determine when and how actions performed on system objects are logged.

The 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 specify how audit rules are inherited from and propagated to objects.

To allow file auditing on computers that are running Windows NT or later operating systems, the Audit Access Security policy must be enabled; by default, this policy is set to No Auditing.

To enable the Audit Access Security policy, perform the following steps:

Click the Start button and then point to All Programs. Point to Administrative Tools and then click Local Security Policy.

In the Local Security Settings window, expand the Local Policies folder and left-click the Audit Policy folder.

Double-click the Audit object access entry in the right pane of the Local Security Settings window to display the Audit object access Properties dialog box.

Select the Success or Failure boxes to log successes or failures.

Note that an audit rule for a user account requires a corresponding access rule for the same user account.

Use the class to create a new audit rule. You can persist this rule using the class.

Represents an abstraction of an access control entry (ACE) that defines an audit rule for a pipe.

- Constructor
  4.0.0.0

  Use this constructor to create an audit rule that can be persisted using the class. Audit rules determine when and how actions performed on system objects are logged.

  Initializes a new instance of the class for a user account specified in a object.

  An object that encapsulates a reference to a user account.
  One of the values that specifies the type of operation associated with the access rule.
  One of the values that specifies when to perform auditing.
- Constructor
  4.0.0.0

  Use this constructor to create an audit rule that can be persisted using the class. Audit rules determine when and how actions performed on system objects are logged.

  Initializes a new instance of the class for a named user account.

  The name of the user account.
  One of the values that specifies the type of operation associated with the access rule.
  One of the values that specifies when to perform auditing.
- Property
  4.0.0.0
  System.IO.Pipes.PipeAccessRights To be added. To be added.

  Gets the flags that are associated with the current object.