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

 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

Sets the specified audit rule for the specified SecurityIdentifier object. Use this method for directory object Access Control Lists (ACLs) when specifying the object type or the inherited object type.

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

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

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.

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.

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

.NET Framework
Available since 2.0
Return to top
Show: