Assembly: mscorlib (in mscorlib.dll)
[SerializableAttribute] [ComVisibleAttribute(true)] [FlagsAttribute] public enum FileIOPermissionAccess
/** @attribute SerializableAttribute() */ /** @attribute ComVisibleAttribute(true) */ /** @attribute FlagsAttribute() */ public enum FileIOPermissionAccess
|AllAccess||Append, Read, Write, and PathDiscovery access to a file or directory. AllAccess represents multiple FileIOPermissionAccess values and causes an ArgumentException when used as the access parameter for the GetPathList method, which expects a single value.|
|Append||Access to append material to a file or directory. Append access includes the ability to create a new file or directory. |
|NoAccess||No access to a file or directory. NoAccess represents no valid FileIOPermissionAccess values and causes an ArgumentException when used as the parameter for GetPathList, which expects a single value.|
|PathDiscovery||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. |
|Read||Access to read from a file or directory.|
|Write||Access to write to or delete a file or directory. Write access includes deleting and overwriting files or directories.|
This enumeration is used with the FileIOPermission class.
Although NoAccess and AllAccess are members of FileIOPermissionAccess, 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 Write 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 Write access.
Windows 98, Windows Server 2000 SP4, Windows Millennium Edition, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter EditionThe Microsoft .NET Framework 3.0 is supported on Windows Vista, Microsoft Windows XP SP2, and Windows Server 2003 SP1.