SystemAcl.SetAudit SystemAcl.SetAudit SystemAcl.SetAudit SystemAcl.SetAudit Method

Definition

Sets the specified audit rule for the specified SecurityIdentifier object.

Overloads

SetAudit(SecurityIdentifier, ObjectAuditRule) SetAudit(SecurityIdentifier, ObjectAuditRule) SetAudit(SecurityIdentifier, ObjectAuditRule) SetAudit(SecurityIdentifier, ObjectAuditRule)

Sets the specified audit rule for the specified SecurityIdentifier object.

SetAudit(AuditFlags, SecurityIdentifier, Int32, InheritanceFlags, PropagationFlags) SetAudit(AuditFlags, SecurityIdentifier, Int32, InheritanceFlags, PropagationFlags) SetAudit(AuditFlags, SecurityIdentifier, Int32, InheritanceFlags, PropagationFlags)

Sets the specified audit rule for the specified SecurityIdentifier object.

SetAudit(AuditFlags, SecurityIdentifier, Int32, InheritanceFlags, PropagationFlags, ObjectAceFlags, Guid, Guid) SetAudit(AuditFlags, SecurityIdentifier, Int32, InheritanceFlags, PropagationFlags, ObjectAceFlags, Guid, Guid) SetAudit(AuditFlags, SecurityIdentifier, Int32, InheritanceFlags, PropagationFlags, ObjectAceFlags, Guid, Guid)

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.

Remarks

These methods remove all existing Access Control Entries (ACEs) that match both specified SecurityIdentifier object and the specified audit condition.

SetAudit(SecurityIdentifier, ObjectAuditRule) SetAudit(SecurityIdentifier, ObjectAuditRule) SetAudit(SecurityIdentifier, ObjectAuditRule) SetAudit(SecurityIdentifier, ObjectAuditRule)

Sets the specified audit rule for the specified SecurityIdentifier object.

public:
 void SetAudit(System::Security::Principal::SecurityIdentifier ^ sid, System::Security::AccessControl::ObjectAuditRule ^ rule);
public void SetAudit (System.Security.Principal.SecurityIdentifier sid, System.Security.AccessControl.ObjectAuditRule rule);
member this.SetAudit : System.Security.Principal.SecurityIdentifier * System.Security.AccessControl.ObjectAuditRule -> unit
Public Sub SetAudit (sid As SecurityIdentifier, rule As ObjectAuditRule)

Parameters

SetAudit(AuditFlags, SecurityIdentifier, Int32, InheritanceFlags, PropagationFlags) SetAudit(AuditFlags, SecurityIdentifier, Int32, InheritanceFlags, PropagationFlags) SetAudit(AuditFlags, SecurityIdentifier, Int32, InheritanceFlags, PropagationFlags)

Sets the specified audit rule for the specified SecurityIdentifier object.

public:
 void SetAudit(System::Security::AccessControl::AuditFlags auditFlags, System::Security::Principal::SecurityIdentifier ^ sid, int accessMask, System::Security::AccessControl::InheritanceFlags inheritanceFlags, System::Security::AccessControl::PropagationFlags propagationFlags);
public void SetAudit (System.Security.AccessControl.AuditFlags auditFlags, System.Security.Principal.SecurityIdentifier sid, int accessMask, System.Security.AccessControl.InheritanceFlags inheritanceFlags, System.Security.AccessControl.PropagationFlags propagationFlags);
member this.SetAudit : System.Security.AccessControl.AuditFlags * System.Security.Principal.SecurityIdentifier * int * System.Security.AccessControl.InheritanceFlags * System.Security.AccessControl.PropagationFlags -> unit

Parameters

auditFlags
AuditFlags AuditFlags AuditFlags AuditFlags

The audit condition to set.

accessMask
Int32 Int32 Int32 Int32

The access mask for the new audit rule.

inheritanceFlags
InheritanceFlags InheritanceFlags InheritanceFlags InheritanceFlags

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

propagationFlags
PropagationFlags PropagationFlags PropagationFlags PropagationFlags

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

Remarks

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

SetAudit(AuditFlags, SecurityIdentifier, Int32, InheritanceFlags, PropagationFlags, ObjectAceFlags, Guid, Guid) SetAudit(AuditFlags, SecurityIdentifier, Int32, InheritanceFlags, PropagationFlags, ObjectAceFlags, Guid, Guid) SetAudit(AuditFlags, SecurityIdentifier, Int32, InheritanceFlags, PropagationFlags, ObjectAceFlags, Guid, Guid)

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.

public:
 void SetAudit(System::Security::AccessControl::AuditFlags auditFlags, System::Security::Principal::SecurityIdentifier ^ sid, int accessMask, System::Security::AccessControl::InheritanceFlags inheritanceFlags, System::Security::AccessControl::PropagationFlags propagationFlags, System::Security::AccessControl::ObjectAceFlags objectFlags, Guid objectType, Guid inheritedObjectType);
public void SetAudit (System.Security.AccessControl.AuditFlags auditFlags, System.Security.Principal.SecurityIdentifier sid, int accessMask, System.Security.AccessControl.InheritanceFlags inheritanceFlags, System.Security.AccessControl.PropagationFlags propagationFlags, System.Security.AccessControl.ObjectAceFlags objectFlags, Guid objectType, Guid inheritedObjectType);
member this.SetAudit : System.Security.AccessControl.AuditFlags * System.Security.Principal.SecurityIdentifier * int * System.Security.AccessControl.InheritanceFlags * System.Security.AccessControl.PropagationFlags * System.Security.AccessControl.ObjectAceFlags * Guid * Guid -> unit

Parameters

auditFlags
AuditFlags AuditFlags AuditFlags AuditFlags

The audit condition to set.

accessMask
Int32 Int32 Int32 Int32

The access mask for the new audit rule.

inheritanceFlags
InheritanceFlags InheritanceFlags InheritanceFlags InheritanceFlags

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

propagationFlags
PropagationFlags PropagationFlags PropagationFlags PropagationFlags

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

objectFlags
ObjectAceFlags ObjectAceFlags ObjectAceFlags ObjectAceFlags

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

objectType
Guid Guid Guid Guid

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

inheritedObjectType
Guid Guid Guid Guid

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

Remarks

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

Applies to