FileAccess Enumeration
Defines constants for read, write, or read/write access to a file.
Namespace: System.IO
Assembly: mscorlib (in mscorlib.dll)
Syntax
public enum FileAccess
Remarks
This enumeration has a ComVisibleAttribute attribute that allows a bitwise combination of its member values.
A FileAccess parameter is specified in many of the constructors for File, FileInfo, FileStream, and other constructors where it is important to control the kind of access users have to a file.
Version Information
Available in the .NET Micro Framework versions 3.0, 4.0, and 4.1.
Members
Member name | Description | |
---|---|---|
Read | Read access to the file. Data can be read from the file. Combine with Write for read/write access. | |
ReadWrite | Read and write access to the file. Data can be written to and read from the file. | |
Write | Write access to the file. Data can be written to the file. Combine with Read for read/write access. |