<PackageReference Include="System.IO.FileSystem.AccessControl" Version="5.0.0-preview.6.20305.6" />

System.Security.AccessControl.FileSecurity

public sealed class FileSecurity : FileSystemSecurity
Represents the access control and audit security for a file. This class cannot be inherited.
public FileSecurity()

Initializes a new instance of the FileSecurity class.

public FileSecurity(string fileName, AccessControlSections includeSections)

Initializes a new instance of the FileSecurity class from a specified file using the specified values of the AccessControlSections enumeration.