See Also: FileIOPermission Members
System.Security.Permissions.FileIOPermission objects describe protected operations on files and directories. Files and directories are specified using absolute paths. Case-sensitivity of files and directories is platform and file system dependent.
This permission distinguishes between the following types of file I/O access provided by System.Security.Permissions.FileIOPermissionAccess:
These access levels are independent, meaning that rights to one do not imply rights to another. For example, Write permission does not imply permission to Read or Append. System.Security.Permissions.FileIOPermissionAccess values can be combined using a bitwise OR operator.
For information on security considerations when accessing files, see System.IO.FileStream .
The XML encoding of a FileIOPermission instance is defined below in EBNF format. The following conventions are used:
The following meta-language symbols are used:
BuildVersion refers to the build version of the shipping CLI. This is specified as a dotted build number such as '2412.0' .
ECMAPubKeyToken ::= b77a5c561934e089
FileName refers to the full path and file name of a file, or to a path name, such as "C:\Temp\test.exe" or "C:\ ".
The XML encoding of a FileIOPermission instance is as follows:
(Read="FileName (; FileName )*" ) ?
(Write="FileName (; FileName )*" ) ?
(Append="FileName (; FileName )*" ) ?
(PathDiscovery="FileName (; FileName )*" ) ?