Specifies the type of file access requested.
This enumeration has a FlagsAttribute attribute that allows a bitwise combination of its member values.Namespace: System.Security.Permissions
Assembly: mscorlib (in mscorlib.dll)
|No access to a file or directory. represents no valid values and causes an ArgumentException when used as the parameter for GetPathList, which expects a single value.|
|Access to read from a file or directory.|
|Access to write to or delete a file or directory. access includes deleting and overwriting files or directories.|
|Access to append material to a file or directory. access includes the ability to create a new file or directory.|
|Access to the information in the path itself. This helps protect sensitive information in the path, such as user names, as well as information about the directory structure revealed in the path. This value does not grant access to files or folders represented by the path.|
|, , , and access to a file or directory. represents multiple values and causes an ArgumentException when used as the access parameter for the GetPathList method, which expects a single value.|
This enumeration is used with the FileIOPermission class.
Although and are members of , they are not valid for use as the parameter for GetPathList because they describe no file access types or all file access types, respectively, and GetPathList expects a single file access type.
Giving access to an assembly is similar to granting it Full Trust. If an application should not write to the file system it should not have access.
Windows 7, Windows Vista, Windows XP SP2, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP Starter Edition, Windows Server 2008 R2, Windows Server 2008, Windows Server 2003, Windows Server 2000 SP4, Windows Millennium Edition, Windows 98
The .NET Framework and .NET Compact Framework do not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.