Early Preview
This is currently very much a preview. Please feel free to try things out,
but don't be upset if anything is not yet working. Feedback is welcome over on our
GitHub Dicussions page.
enum System.IO.FileOptions
Assembly: System.Runtime
Represents advanced options for creating a <see cref="T:System.IO.FileStream" /> object.
Values
WriteThrough
Indicates that the system should write through any intermediate cache and go directly to disk.
None
Indicates that no additional options should be used when creating a <see cref="T:System.IO.FileStream" /> object.
Encrypted
Indicates that a file is encrypted and can be decrypted only by using the same user account used for encryption.
DeleteOnClose
Indicates that a file is automatically deleted when it is no longer in use.
SequentialScan
Indicates that the file is to be accessed sequentially from beginning to end. The system can use this as a hint to optimize file caching. If an application moves the file pointer for random access, optimum caching may not occur; however, correct operation is still guaranteed. Specifying this flag can increase performance in some cases.
RandomAccess
Indicates that the file is accessed randomly. The system can use this as a hint to optimize file caching.
Asynchronous
Indicates that a file can be used for asynchronous reading and writing.