BCL mscorlib [00 00 00 00 00 00 00 00 04 00 00 00 00 00 00 00 ] 1.0.5000.0 2.0.0.0 All public static members of this type are safe for multithreaded operations. No instance members are guaranteed to be thread safe. System.Security.Permissions.CodeAccessSecurityAttribute System.AttributeUsage(System.AttributeTargets.Assembly | System.AttributeTargets.Class | System.AttributeTargets.Struct | System.AttributeTargets.Constructor | System.AttributeTargets.Method | System.AttributeTargets.All, AllowMultiple=true, Inherited=false) System.Runtime.InteropServices.ComVisible(true)

Used to declaratively specify security actions to control access to files and directories.

The level of access to a file or directory is specified using the members of the current instance. For example, to specify read permissions for a file, set the property equal to the name of the file.

The security information declared by a security attribute is stored in the metadata of the attribute target, and is accessed by the system at run-time. Security attributes are used for declarative security only. For imperative security, use the corresponding permission class, .

The allowable targets are determined by the passed to the constructor.

Case-sensitivity of file and directory names is platform dependent. The set of characters that are valid for use in file and directory names is determined by the current file system.

The following example shows a declarative request for full access to the specified file. The security action indicates that this is the minimum permission required for the target assembly to be able to execute.

[assembly:FileIOPermissionAttribute(SecurityAction.RequestMinimum, All="\\example\\sample.txt")]

The following example shows how to demand that the calling code has unrestricted access to files and directories. Demands are typically made to protect methods or classes from malicious code.

[FileIOPermissionAttribute(SecurityAction.Demand, Unrestricted=true)]

- Constructor
  A value.

  Constructs and initializes a new instance of the class with the specified value.

  To be added.
  is not a valid value.
  0
  1.0.5000.0
  2.0.0.0
- Property
  System.String To be added. To be added. To be added. 1.0.5000.0 2.0.0.0 System.Obsolete("use newer properties")
- Property
  System.Security.Permissions.FileIOPermissionAccess To be added. To be added. To be added. 2.0.0.0
- Property
  System.Security.Permissions.FileIOPermissionAccess To be added. To be added. To be added. 2.0.0.0
- Property
  System.String

  Gets or sets the name of a file or directory for which append access is secured.

  A containing the absolute path of the file or directory for which append access is secured.

  This property sets append access for a single file or directory; use additional attributes to specify additional files and directories.

  The path information specified for a set operation contains invalid characters or wild card specifiers. 0 1.0.5000.0 2.0.0.0
- Property
  System.String To be added. To be added. To be added. 2.0.0.0
- Method
  System.Security.IPermission

  Returns a new that contains the security information of the current instance.

  A new object with the security information of the current instance.

  Applications typically do not call this method; it is intended for use by the system.

  The security information declared by a security attribute is stored in the metadata of the attribute target, and is accessed by the system at run-time. The system uses the object returned by this method to convert the security information of the current instance into the form stored in metadata.

  This method overrides .

  0
  1.0.5000.0
  2.0.0.0
- Property
  System.String

  Gets or sets the name of a file or directory for which path discovery access is secured.

  A containing the absolute path of the file or directory for which access to the contents of the path is secured.

  This property sets path discovery access for a single file or directory; use additional attributes to specify additional files and directories.

  Path discovery controls access to the information in the path itself. This protects 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 secure access to files or folders represented by the path.

  The path information specified for a set operation contains invalid characters or wild card specifiers. 0 1.0.5000.0 2.0.0.0
- Property
  System.String

  Gets or sets the name of a file or directory for which read access is secured.

  A containing the absolute path of the file or directory for which read access is secured.

  This property sets read access for a single file or directory; use additional attributes to specify additional files and directories.

  The path information specified for a set operation contains invalid characters or wild card specifiers. 0 1.0.5000.0 2.0.0.0
- Property
  System.String To be added. To be added. To be added. 2.0.0.0
- Property
  System.String To be added. To be added. To be added. 2.0.0.0
- Property
  System.String

  Gets or sets the name of a file or directory for which write access is secured.

  A containing the absolute path of the file or directory for which write access is secured.

  This property sets write access for a single file or directory; use additional attributes to specify additional files and directories.

  The path information specified for a set operation contains invalid characters or wild card specifiers. 0 1.0.5000.0 2.0.0.0
0