<PackageReference Include="System.Security.AccessControl" Version="5.0.0-preview.2.20160.6" />

SystemAcl

public sealed class SystemAcl : CommonAcl
Represents a System Access Control List (SACL).
public SystemAcl(bool isContainer, bool isDS, byte revision, int capacity)

Initializes a new instance of the SystemAcl class with the specified values.

public SystemAcl(bool isContainer, bool isDS, int capacity)

Initializes a new instance of the SystemAcl class with the specified values.

public SystemAcl(bool isContainer, bool isDS, RawAcl rawAcl)

Initializes a new instance of the SystemAcl class with the specified values from the specified RawAcl object.

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

Adds an audit rule to the current SystemAcl object.

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

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.

Adds an audit rule to the current SystemAcl object.

public bool RemoveAudit(AuditFlags auditFlags, SecurityIdentifier sid, int accessMask, InheritanceFlags inheritanceFlags, PropagationFlags propagationFlags)

Removes the specified audit rule from the current SystemAcl object.

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

Removes the specified audit rule from the current SystemAcl object. Use this method for directory object Access Control Lists (ACLs) when specifying the object type or the inherited object type.

Removes the specified audit rule from the current SystemAcl object.

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

Removes the specified audit rule from the current DiscretionaryAcl object.

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

Removes the specified audit rule from the current DiscretionaryAcl object. Use this method for directory object Access Control Lists (ACLs) when specifying the object type or the inherited object type.

Removes the specified audit rule from the current DiscretionaryAcl object.

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

Sets the specified audit rule for the specified SecurityIdentifier object.

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

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.

Sets the specified audit rule for the specified SecurityIdentifier object.