OpenFlags Enum
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
This enumeration supports a bitwise combination of its member values.
[System.Flags]
public enum OpenFlags
[<System.Flags>]
type OpenFlags =
- Inheritance
-
OpenFlags
- Attributes
Fields
| Name | Value | Description |
|---|---|---|
| ReadOnly | 0 | For use with requestOpen(int, boolean, Executor, OutcomeReceiver): open for reading only. Android reference for Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License. |
| WriteOnly | 1 | For use with requestOpen(int, boolean, Executor, OutcomeReceiver): open for writing only. Android reference for Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License. |
| ReadWrite | 2 | For use with requestOpen(int, boolean, Executor, OutcomeReceiver): open for reading and writing. Android reference for Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License. |
| Nonblock | 2048 | For use with requestOpen(int, boolean, Executor, OutcomeReceiver): when possible, the file is opened in nonblocking mode. Android reference for Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License. |
| DataSync | 4096 | For use with requestOpen(int, boolean, Executor, OutcomeReceiver): write operations on the file will complete according to the requirements of synchronized I/O data integrity completion (while file metadata may not be synchronized). Android reference for Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License. |
| Sync | 1048576 | For use with requestOpen(int, boolean, Executor, OutcomeReceiver): write operations on the file will complete according to the requirements of synchronized I/O file integrity completion (by contrast with the synchronized I/O data integrity completion provided by FLAG_DATA_SYNC). Android reference for Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License. |