Represents an abstraction of an access control entry (ACE) that defines an audit rule for a pipe.
Assembly: System.Core (in System.Core.dll)
|PipeAuditRule(IdentityReference, PipeAccessRights, AuditFlags)|
Initializes a new instance of the IdentityReference object.class for a user account specified in a
|PipeAuditRule(String, PipeAccessRights, AuditFlags)|
Initializes a new instance of theclass for a named user account.
Gets the access mask for this rule.(Inherited from AuthorizationRule.)
Gets the audit flags for this audit rule.(Inherited from AuditRule.)
Gets the value of flags that determine how this rule is inherited by child objects.(Inherited from AuthorizationRule.)
Gets a value indicating whether this rule is explicitly set or is inherited from a parent container object.(Inherited from AuthorizationRule.)
Gets the PipeAccessRights flags that are associated with the current object.
Determines whether the specified object is equal to the current object.(Inherited from Object.)
Serves as the default hash function. (Inherited from Object.)
Returns a string that represents the current object.(Inherited from Object.)
Audit rules determine when and how actions performed on system objects are logged.
Theclass 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 PipeSecurity class.class to create a new audit rule. You can persist this rule using the
Available since 3.5
Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.