<PackageReference Include="System.Security.Permissions" Version="9.0.1" />

FileIOPermissionAttribute

Allows security actions for FileIOPermission to be applied to code using declarative security. This class cannot be inherited.
public string All { get; set; }

Gets or sets full access for the file or directory that is specified by the string value.

public FileIOPermissionAccess AllFiles { get; set; }

Gets or sets the permitted access to all files.

Gets or sets the permitted access to all local files.

public string Append { get; set; }

Gets or sets append access for the file or directory that is specified by the string value.

public string ChangeAccessControl { get; set; }

Gets or sets the file or directory in which access control information can be changed.

public string PathDiscovery { get; set; }

Gets or sets the file or directory to which to grant path discovery.

public string Read { get; set; }

Gets or sets read access for the file or directory specified by the string value.

public string ViewAccessControl { get; set; }

Gets or sets the file or directory in which access control information can be viewed.

public string ViewAndModify { get; set; }

Gets or sets the file or directory in which file data can be viewed and modified.

public string Write { get; set; }

Gets or sets write access for the file or directory specified by the string value.

Initializes a new instance of the FileIOPermissionAttribute class with the specified SecurityAction.