FileAccess Enumeration
[This documentation is for preview only, and is subject to change in later releases. Blank topics are included as placeholders.]
Defines constants for read, write, or read/write access to a file.
This enumeration has a FlagsAttribute attribute that allows a bitwise combination of its member values.
Namespace: System.IO
Assembly: System.IO (in System.IO.dll)
Syntax
'Declaration
<SerializableAttribute> _
<FlagsAttribute> _
Public Enumeration FileAccess
[SerializableAttribute]
[FlagsAttribute]
public enum FileAccess
[SerializableAttribute]
[FlagsAttribute]
public enum class FileAccess
[<SerializableAttribute>]
[<FlagsAttribute>]
type FileAccess
public enum FileAccess
Members
Member name | Description | |
---|---|---|
Read | Read access to the file. Data can be read from the file. Combine with Write for read/write access. | |
Write | Write access to the file. Data can be written to the file. Combine with Read for read/write access. | |
ReadWrite | Read and write access to the file. Data can be written to and read from the file. |
Remarks
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.