SystemAcl.AddAudit Method (AuditFlags, SecurityIdentifier, Int32, InheritanceFlags, PropagationFlags, ObjectAceFlags, Guid, Guid)

 

Adds an audit rule with the specified settings to the current SystemAcl object. Use this method for directory object Access Control Lists (ACLs) when specifying the object type or the inherited object type for the new audit rule.

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

public void AddAudit(
	AuditFlags auditFlags,
	SecurityIdentifier sid,
	int accessMask,
	InheritanceFlags inheritanceFlags,
	PropagationFlags propagationFlags,
	ObjectAceFlags objectFlags,
	Guid objectType,
	Guid inheritedObjectType
)

Parameters

auditFlags
Type: System.Security.AccessControl.AuditFlags

The type of audit rule to add.

sid
Type: System.Security.Principal.SecurityIdentifier

The SecurityIdentifier for which to add 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.

objectFlags
Type: System.Security.AccessControl.ObjectAceFlags

Flags that specify if the objectType and inheritedObjectType parameters contain non-null values.

objectType
Type: System.Guid

The identity of the class of objects to which the new audit rule applies.

inheritedObjectType
Type: System.Guid

The identity of the class of child objects which can inherit the new audit rule.

.NET Framework
Available since 2.0
Return to top
Show: