<PackageReference Include="System.Security.AccessControl" Version="6.0.0-preview.1.21102.12" />

CommonAcl

public abstract class CommonAcl : GenericAcl
Represents an access control list (ACL) and is the base class for the DiscretionaryAcl and SystemAcl classes.
public bool IsCanonical { get; }

Gets a Boolean value that specifies whether the access control entries (ACEs) in the current CommonAcl object are in canonical order.

public bool IsContainer { get; }

Sets whether the CommonAcl object is a container.

public bool IsDS { get; }

Sets whether the current CommonAcl object is a directory object access control list (ACL).

public void Purge(SecurityIdentifier sid)

Removes all access control entries (ACEs) contained by this CommonAcl object that are associated with the specified SecurityIdentifier object.

public void RemoveInheritedAces()

Removes all inherited access control entries (ACEs) from this CommonAcl object.