SystemAcl.SetAudit Method (AuditFlags, SecurityIdentifier, Int32, InheritanceFlags, PropagationFlags)

Sets the specified audit rule for the specified SecurityIdentifier object.

Namespace:  System.Security.AccessControl
Assembly:  mscorlib (in mscorlib.dll)

public void SetAudit(
	AuditFlags auditFlags,
	SecurityIdentifier sid,
	int accessMask,
	InheritanceFlags inheritanceFlags,
	PropagationFlags propagationFlags
)

Parameters

auditFlags
Type: System.Security.AccessControl.AuditFlags

The audit condition to set.

sid
Type: System.Security.Principal.SecurityIdentifier

The SecurityIdentifier for which to set an audit rule.

accessMask
Type: System.Int32

The access mask for the new audit rule.

inheritanceFlags
Type: System.Security.AccessControl.InheritanceFlags

Flags that specify the inheritance properties of the new audit rule.

propagationFlags
Type: System.Security.AccessControl.PropagationFlags

Flags that specify the inheritance propagation properties for the new audit rule.

This method removes all existing Access Control Entries (ACEs) that match both specified SecurityIdentifier object and the specified audit condition.

.NET Framework

Supported in: 4.6, 4.5, 4, 3.5, 3.0, 2.0

.NET Framework Client Profile

Supported in: 4, 3.5 SP1
Was this page helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2015 Microsoft