SystemAcl.AddAudit SystemAcl.AddAudit SystemAcl.AddAudit SystemAcl.AddAudit Method

Definition

Adds an audit rule to the current SystemAcl object.

Overloads

AddAudit(SecurityIdentifier, ObjectAuditRule) AddAudit(SecurityIdentifier, ObjectAuditRule) AddAudit(SecurityIdentifier, ObjectAuditRule) AddAudit(SecurityIdentifier, ObjectAuditRule)

Adds an audit rule to the current SystemAcl object.

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

Adds an audit rule to the current SystemAcl object.

AddAudit(AuditFlags, SecurityIdentifier, Int32, InheritanceFlags, PropagationFlags, ObjectAceFlags, Guid, Guid) AddAudit(AuditFlags, SecurityIdentifier, Int32, InheritanceFlags, PropagationFlags, ObjectAceFlags, Guid, Guid) AddAudit(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.

Remarks

Adding an audit rule might cause one or more existing Access Control Entries (ACEs) to be combined.

AddAudit(SecurityIdentifier, ObjectAuditRule) AddAudit(SecurityIdentifier, ObjectAuditRule) AddAudit(SecurityIdentifier, ObjectAuditRule) AddAudit(SecurityIdentifier, ObjectAuditRule)

Adds an audit rule to the current SystemAcl object.

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

Parameters

Remarks

Adding an audit rule might cause one or more existing Access Control Entries (ACEs) to be combined.

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

Adds an audit rule to the current SystemAcl object.

public:
 void AddAudit(System::Security::AccessControl::AuditFlags auditFlags, System::Security::Principal::SecurityIdentifier ^ sid, int accessMask, System::Security::AccessControl::InheritanceFlags inheritanceFlags, System::Security::AccessControl::PropagationFlags propagationFlags);
public void AddAudit (System.Security.AccessControl.AuditFlags auditFlags, System.Security.Principal.SecurityIdentifier sid, int accessMask, System.Security.AccessControl.InheritanceFlags inheritanceFlags, System.Security.AccessControl.PropagationFlags propagationFlags);
member this.AddAudit : 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 type of audit rule to add.

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

Adding an audit rule might cause one or more existing Access Control Entries (ACEs) to be combined.

AddAudit(AuditFlags, SecurityIdentifier, Int32, InheritanceFlags, PropagationFlags, ObjectAceFlags, Guid, Guid) AddAudit(AuditFlags, SecurityIdentifier, Int32, InheritanceFlags, PropagationFlags, ObjectAceFlags, Guid, Guid) AddAudit(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.

public:
 void AddAudit(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 AddAudit (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.AddAudit : 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 type of audit rule to add.

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.

Applies to